Browse Source

NPE in javadoc when no destdir is specified. PR 55949

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1555019 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 11 years ago
parent
commit
39734fdcec
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Javadoc.java

+ 3
- 0
WHATSNEW View File

@@ -53,6 +53,9 @@ Fixed bugs:
exception. exception.
Bugzilla Report 53964 Bugzilla Report 53964


* <javadoc> caused a NullPointerException when no destdir was set.
Bugzilla Report 55949

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




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

@@ -2447,7 +2447,7 @@ public class Javadoc extends Task {
if (!postProcessGeneratedJavadocs) { if (!postProcessGeneratedJavadocs) {
return; return;
} }
if (!destDir.isDirectory()) {
if (destDir != null && !destDir.isDirectory()) {
log("No javadoc created, no need to post-process anything", log("No javadoc created, no need to post-process anything",
Project.MSG_VERBOSE); Project.MSG_VERBOSE);
return; return;


Loading…
Cancel
Save