commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip May (JIRA)" <>
Subject [jira] Created: (MODELER-28) Possible NullPointerException in IntrospectionUtils
Date Wed, 20 Feb 2008 09:07:43 GMT
Possible NullPointerException in IntrospectionUtils

                 Key: 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.

View raw message