Browse Source

Bugzilla 40847: possible NPE in Jar.java

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@474481 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
75e6e7f764
4 changed files with 9 additions and 1 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +3
    -0
      WHATSNEW
  3. +4
    -0
      contributors.xml
  4. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Jar.java

+ 1
- 0
CONTRIBUTORS View File

@@ -6,6 +6,7 @@ Alexey Solofnenko
Andreas Ames
Andreas Mross
Andrew Everitt
Andrey Urazov
Anil K. Vijendran
Anli Shundi
Anthony Goubard


+ 3
- 0
WHATSNEW View File

@@ -17,6 +17,9 @@ Fixed bugs:
take comparison with another CompressedResouce into account.
Bugzilla 40949.

* possible NPE in Jar.java.
Bugzilla 40847

Other changes:
--------------



+ 4
- 0
contributors.xml View File

@@ -34,6 +34,10 @@
<first>Andrew</first>
<last>Everitt</last>
</name>
<name>
<first>Andrey</first>
<last>Urazov</last>
</name>
<name>
<first>Anil</first>
<middle>K.</middle>


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Jar.java View File

@@ -526,7 +526,7 @@ public class Jar extends Zip {
Manifest.Attribute classpath =
mf.getMainSection().getAttribute(Manifest.ATTRIBUTE_CLASSPATH);
String[] cpEntries = null;
if (classpath != null) {
if (classpath != null && classpath.getValue() != null) {
StringTokenizer tok = new StringTokenizer(classpath.getValue(),
" ");
cpEntries = new String[tok.countTokens()];


Loading…
Cancel
Save