Possible NullPointerException in IntrospectionUtils
---------------------------------------------------
Key: MODELER-28
URL: https://issues.apache.org/jira/browse/MODELER-28
Project: Commons Modeler
Issue Type: Bug
Reporter: Philip May
IntrospectionUtils#callMethod1(Object target, String methodN, Object param1,
String typeParam1, ClassLoader cl)
could throw a NullPointerException when target is null.
There are two possible solutions:
1) remove the method since it's not used at all
2) return null when target is null like it's done in
IntrospectionUtils#callMethod0
if( target==null ) {
d("Assert: Illegal params " + target );
return null;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.