You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/08/13 09:45:22 UTC
(maven-javadoc-plugin) 02/02: check for null
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch replace
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git
commit 5d8b794e301215d1424c86ec72f7eba04cecaf2c
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Wed Aug 13 05:45:11 2025 -0400
check for null
---
.../org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
index 1117d649..192af3f5 100644
--- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
+++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
@@ -2663,12 +2663,15 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
}
/**
- * Method that sets the text that will be displayed on the bottom of the
- * javadocs.
+ * Method that sets the text that will be displayed on the bottom of the javadocs.
*
* @return a String that contains the text that will be displayed at the bottom of the javadoc
*/
private String getBottomText() {
+ if (this.bottom == null) {
+ return null;
+ }
+
final String inceptionYear = project.getInceptionYear();
// get Reproducible Builds outputTimestamp date value or the current local date.
@@ -2697,8 +2700,7 @@ public abstract class AbstractJavadocMojo extends AbstractMojo {
+ project.getOrganization().getName() + "</a>");
} else {
theBottom = theBottom.replace(
- "{organizationName}",
- project.getOrganization().getName());
+ "{organizationName}", project.getOrganization().getName());
}
} else {
theBottom = theBottom.replace(" {organizationName}", "");