Browse Source

Fix NPE, PR: 24344

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275602 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
eba9a3c2d9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java View File

@@ -559,6 +559,7 @@ public class JDependTask extends Task {
// we have to find a cleaner way to put this output
}

if (getSourcespath() != null) {
// This is deprecated - use classespath in the future
String[] sourcesPath = getSourcespath().list();
for (int i = 0; i < sourcesPath.length; i++) {
@@ -571,7 +572,9 @@ public class JDependTask extends Task {
}
commandline.createArgument().setValue(f.getPath());
}
}

if (getClassespath() != null) {
// This is the new way - use classespath - code is the same for now
String[] classesPath = getClassespath().list();
for (int i = 0; i < classesPath.length; i++) {
@@ -583,6 +586,7 @@ public class JDependTask extends Task {
}
commandline.createArgument().setValue(f.getPath());
}
}

Execute execute = new Execute(new LogStreamHandler(this,
Project.MSG_INFO, Project.MSG_WARN), watchdog);


Loading…
Cancel
Save