Browse Source

fix NPE

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273503 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
535fd73ec6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -682,7 +682,7 @@ public class JUnitTask extends Task {
} catch (IOException e) {
throw new BuildException("Process fork failed.", e, getLocation());
} finally {
if (watchdog.killedProcess()) {
if (watchdog != null && watchdog.killedProcess()) {
logTimeout(feArray, test);
}



Loading…
Cancel
Save