[
https://issues.apache.org/jira/browse/MJAVADOC-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957709#comment-17957709
]
Olivier Lamy commented on MJAVADOC-342:
---------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-javadoc-plugin#641|https://github.com/apache/maven-javadoc-plugin/issues/641].
> An incomplete fix for the NPE bugs in AbstractJavadocMojo.java
> --------------------------------------------------------------
>
> Key: MJAVADOC-342
> URL: https://issues.apache.org/jira/browse/MJAVADOC-342
> Project: Maven Javadoc Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Reporter: Guangtai Liang
> Assignee: Benson Margulies
> Priority: Major
> Fix For: 2.9
>
>
> 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".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)