myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcoo...@apache.org
Subject svn commit: r1099994 - /myfaces/trinidad-maven/trunk/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
Date Thu, 05 May 2011 23:17:33 GMT
Author: mcooper
Date: Thu May  5 23:17:33 2011
New Revision: 1099994

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

Modified:
    myfaces/trinidad-maven/trunk/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java

Modified: myfaces/trinidad-maven/trunk/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/trunk/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java?rev=1099994&r1=1099993&r2=1099994&view=diff
==============================================================================
--- myfaces/trinidad-maven/trunk/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
(original)
+++ myfaces/trinidad-maven/trunk/maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java
Thu May  5 23:17:33 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