maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1143338 - /maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java
Date Wed, 06 Jul 2011 11:02:26 GMT
Author: olamy
Date: Wed Jul  6 11:02:26 2011
New Revision: 1143338

URL: http://svn.apache.org/viewvc?rev=1143338&view=rev
Log:
take care of NPE : thanks sonar

Modified:
    maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java

Modified: maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java?rev=1143338&r1=1143337&r2=1143338&view=diff
==============================================================================
--- maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java
(original)
+++ maven/archetype/trunk/archetype-common/src/main/java/org/apache/maven/archetype/common/DefaultArchetypeArtifactManager.java
Wed Jul  6 11:02:26 2011
@@ -485,7 +485,10 @@ public class DefaultArchetypeArtifactMan
         }
         finally
         {
-            reader.close();
+            if (reader != null)
+            {
+                reader.close();
+            }
         }
     }
 



Mime
View raw message