Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-342

An incomplete fix for the NPE bugs in AbstractJavadocMojo.java

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The fix revision 554202 was aimed to remove an NPE bug on the returned value of "getJavadocDirectory()" in the method "getSourcePaths " of the file "/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java" , but it is incomplete.
      Since the returned value "getJavadocDirectory()" could be null during the runtime execution, its value should also be null-checked before being dereferenced in other methods.

      The buggy code locations the same fix needs to be applied at are as bellows:

      Line 2401 of the method "copyJavadocResources";
      Line 1505 of the method "getSourcePaths".

        Activity

          People

          • Assignee:
            Benson Margulies
            Reporter:
            Guangtai Liang
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: