You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mc...@apache.org on 2011/05/06 01:20:06 UTC

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

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();