ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40847] New: - Possible NullPointerException in Jar.createIndexList()
Date Tue, 31 Oct 2006 06:38:50 GMT
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: dev@ant.apache.org
        ReportedBy: urazov@parasoft.com.pl


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message