maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r712569 - /maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructure.java
Date Sun, 09 Nov 2008 21:58:43 GMT
Author: olamy
Date: Sun Nov  9 13:58:43 2008
New Revision: 712569

URL: http://svn.apache.org/viewvc?rev=712569&view=rev
Log:
[MWAR-170] fix possible NPE


Modified:
    maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructure.java

Modified: maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructure.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructure.java?rev=712569&r1=712568&r2=712569&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructure.java
(original)
+++ maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/util/WebappStructure.java
Sun Nov  9 13:58:43 2008
@@ -106,6 +106,10 @@
     public List getDependencies()
     {
         final List result = new ArrayList();
+        if ( dependenciesInfo == null )
+        {
+            return result;
+        }
         final Iterator it = dependenciesInfo.iterator();
         while ( it.hasNext() )
         {



Mime
View raw message