https://issues.apache.org/bugzilla/show_bug.cgi?id=57389

            Bug ID: 57389
           Summary: Potential NPE in converters
           Product: JMeter
           Version: 2.12
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 32320
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32320&action=edit
Fix potential NPE in converters

in the converters in org.apache.jmeter.save.converters there are a few possible
NPE. In the method canConvert(Class) often the implementation looks like

 "return arg0.equals(SomeClass.class)"

without arg0 being checked for non-null.

I would reverse the logic to

 "return SomeClass.class.equals(arg0)"

This is null safe and should return the same values (apart from possible NPE).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to