myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcoo...@apache.org
Subject svn commit: r1099996 - /myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
Date Thu, 05 May 2011 23:20:06 GMT
Author: mcooper
Date: Thu May  5 23:20:06 2011
New Revision: 1099996

URL: http://svn.apache.org/viewvc?rev=1099996&view=rev
Log:
Revert null pointer check that was removed in revision 749515 (prior to branching); causes
a NullPointerException.

Modified:
    myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java

Modified: myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java?rev=1099996&r1=1099995&r2=1099996&view=diff
==============================================================================
--- myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
(original)
+++ myfaces/trinidad-maven/branches/2.0.x-branch/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
Thu May  5 23:20:06 2011
@@ -420,9 +420,12 @@ public class JDeveloperMojo
       List compileSourceRoots =
         executionProject.getTestCompileSourceRoots();
 
-      for (int i = 0; i < testSourceRoots.length; i++)
+      if (testResourceRoots != null)
       {
-        compileSourceRoots.add(testSourceRoots[i].getAbsolutePath());
+        for (int i = 0; i < testSourceRoots.length; i++)
+        {
+          compileSourceRoots.add(testSourceRoots[i].getAbsolutePath());
+        }
       }
 
       List compileResourceRoots = executionProject.getTestResources();



Mime
View raw message