geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r474105 - /geronimo/genesis/trunk/plugins/script-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/script/GroovyMojo.java
Date Mon, 13 Nov 2006 00:28:54 GMT
Author: jdillon
Date: Sun Nov 12 16:28:53 2006
New Revision: 474105

URL: http://svn.apache.org/viewvc?view=rev&rev=474105
Log:
Avoid NPE when cause is null

Modified:
    geronimo/genesis/trunk/plugins/script-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/script/GroovyMojo.java

Modified: geronimo/genesis/trunk/plugins/script-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/script/GroovyMojo.java
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/plugins/script-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/script/GroovyMojo.java?view=diff&rev=474105&r1=474104&r2=474105
==============================================================================
--- geronimo/genesis/trunk/plugins/script-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/script/GroovyMojo.java
(original)
+++ geronimo/genesis/trunk/plugins/script-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/script/GroovyMojo.java
Sun Nov 12 16:28:53 2006
@@ -185,7 +185,9 @@
             }
             
             Throwable cause = e.getCause();
-            assert cause != null;
+            if (cause == null) {
+                cause = e;
+            }
             
             throw new MojoExecutionException(cause.getMessage(), cause);
         }



Mime
View raw message