maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r359244 - /maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
Date Tue, 27 Dec 2005 17:27:22 GMT
Author: carlos
Date: Tue Dec 27 09:27:14 2005
New Revision: 359244

URL: http://svn.apache.org/viewcvs?rev=359244&view=rev
Log:
Prevent null pointer exception when parent url is not defined

Modified:
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java?rev=359244&r1=359243&r2=359244&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteMojo.java
Tue Dec 27 09:27:14 2005
@@ -548,7 +548,7 @@
         }
 
         MavenProject parentProject = project.getParent();
-        if ( parentProject != null )
+        if ( ( parentProject != null ) && ( project.getUrl() != null ) &&
( parentProject.getUrl() != null ) )
         {
             props.put( "parentProject", getProjectParentMenu( locale ) );
 



Mime
View raw message