DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40847>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40847

           Summary: Possible NullPointerException in Jar.createIndexList()
           Product: Ant
           Version: 1.7.0Beta3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I'm running Jtest's BugDetective feature on Ant-1.7.0Beta3 and it reports there
is a possible NPE in Jar.createIndexList().

BugDetective thinks NPE can in the constructor of StringTokenizer because at
line 531:

                StringTokenizer tok = new StringTokenizer(classpath.getValue(),

classpath.getValue() can return null. The latter according to BugDetective
happens when "classpath.values.size() == 0" and it looks this indeed may happen
since there is no code which ensures value list is non-empty.

Please judge if BugDetective found a real problem or the NPE is not going to
happen in practice.

Thank you.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to