#2632 Potential Null Point Exception in CIMDataType

Function
closed-fixed
Dave Blaschke
jsr48-client
5
2013-09-19
2013-05-02
chen wang
No

new CIMArgument("foo", CIMDataType.OBJECT_ARRAY_T, new CIMObjectPath[]{null});
...
...
In CIMDataType, it gets the first element and invokes its getObjectName() - a NullPointerException is thrown.

    if (pObj instanceof CIMObjectPath[]) {
        CIMObjectPath[] ops = (CIMObjectPath[]) pObj;
        CIMObjectPath op = ops[0];
        return new CIMDataType(op.getObjectName(), 0);
    }
1 Attachments

Discussion

  • Dave Blaschke
    Dave Blaschke
    2013-05-02

    • status: open --> open-accepted
    • Component: none --> jsr48-client
     
    Last edit: Dave Blaschke 2013-05-02
  • Dave Blaschke
    Dave Blaschke
    2013-05-02

    Patch sent for community review. During a 2 week period any exploiter may comment on the patch, request changes or turn it down completely (with good reason). For the time being the patch is part of the "Experimental" branch in CVS.

     
  • Dave Blaschke
    Dave Blaschke
    2013-05-02

    • status: open-accepted --> open-fixed
     
    Last edit: Dave Blaschke 2013-05-02
  • Dave Blaschke
    Dave Blaschke
    2013-05-27

    • status: open-fixed --> pending-fixed
     
  • Dave Blaschke
    Dave Blaschke
    2013-05-27

    The community review is completed and we received no substantial criticism. Therefore the patch has been approved and merged into the "HEAD" branch. The next release will pick it up.

     
  • Dave Blaschke
    Dave Blaschke
    2013-05-31

    • status: pending-fixed --> closed-fixed
     
  • Dave Blaschke
    Dave Blaschke
    2013-05-31

    The patch was picked up by release 2.2.3 and will be closed.

     
  • Dave Blaschke
    Dave Blaschke
    2013-09-19

    • labels: --> Java Client (JSR48)