git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@474481 13f79535-47bb-0310-9956-ffa450edef68master
@@ -6,6 +6,7 @@ Alexey Solofnenko | |||||
Andreas Ames | Andreas Ames | ||||
Andreas Mross | Andreas Mross | ||||
Andrew Everitt | Andrew Everitt | ||||
Andrey Urazov | |||||
Anil K. Vijendran | Anil K. Vijendran | ||||
Anli Shundi | Anli Shundi | ||||
Anthony Goubard | Anthony Goubard | ||||
@@ -17,6 +17,9 @@ Fixed bugs: | |||||
take comparison with another CompressedResouce into account. | take comparison with another CompressedResouce into account. | ||||
Bugzilla 40949. | Bugzilla 40949. | ||||
* possible NPE in Jar.java. | |||||
Bugzilla 40847 | |||||
Other changes: | Other changes: | ||||
-------------- | -------------- | ||||
@@ -34,6 +34,10 @@ | |||||
<first>Andrew</first> | <first>Andrew</first> | ||||
<last>Everitt</last> | <last>Everitt</last> | ||||
</name> | </name> | ||||
<name> | |||||
<first>Andrey</first> | |||||
<last>Urazov</last> | |||||
</name> | |||||
<name> | <name> | ||||
<first>Anil</first> | <first>Anil</first> | ||||
<middle>K.</middle> | <middle>K.</middle> | ||||
@@ -526,7 +526,7 @@ public class Jar extends Zip { | |||||
Manifest.Attribute classpath = | Manifest.Attribute classpath = | ||||
mf.getMainSection().getAttribute(Manifest.ATTRIBUTE_CLASSPATH); | mf.getMainSection().getAttribute(Manifest.ATTRIBUTE_CLASSPATH); | ||||
String[] cpEntries = null; | String[] cpEntries = null; | ||||
if (classpath != null) { | |||||
if (classpath != null && classpath.getValue() != null) { | |||||
StringTokenizer tok = new StringTokenizer(classpath.getValue(), | StringTokenizer tok = new StringTokenizer(classpath.getValue(), | ||||
" "); | " "); | ||||
cpEntries = new String[tok.countTokens()]; | cpEntries = new String[tok.countTokens()]; | ||||