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

Guy Korland (JIRA) jira-events at lists.jboss.org
Mon Mar 17 17:31:51 EDT 2008


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