[jboss-jira] [JBoss JIRA] Resolved: (JASSIST-54) Possible NPE on ClassMetaobject()

Shigeru Chiba (JIRA) jira-events at lists.jboss.org
Wed Mar 19 09:10:53 EDT 2008


     [ http://jira.jboss.com/jira/browse/JASSIST-54?page=all ]

Shigeru Chiba resolved JASSIST-54.
----------------------------------

    Resolution: Done

> Possible NPE on ClassMetaobject()
> ---------------------------------
>
>                 Key: JASSIST-54
>                 URL: http://jira.jboss.com/jira/browse/JASSIST-54
>             Project: Javassist
>          Issue Type: Bug
>            Reporter: Guy Korland
>         Assigned To: Shigeru Chiba
>
> The marked line might throw NullPointerException if ClassNotFoundException is thrown.
>  public ClassMetaobject(String[] params)
>     {
>         try {
>             javaClass = getClassObject(params[0]);
>         }
>         catch (ClassNotFoundException e) {
>             javaClass = null;
>         }
>  -->       constructors = javaClass.getConstructors();
>         methods = null;
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list