[pkg-java] r15553 - trunk/maven-repo-helper/src/main/java/org/debian/maven/repo

Ludovic Claude ludovicc-guest at alioth.debian.org
Fri Dec 16 23:15:22 UTC 2011


Author: ludovicc-guest
Date: 2011-12-16 23:15:21 +0000 (Fri, 16 Dec 2011)
New Revision: 15553

Modified:
   trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/Repository.java
Log:
Fix NPE

Modified: trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/Repository.java
===================================================================
--- trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/Repository.java	2011-12-16 20:47:28 UTC (rev 15552)
+++ trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/Repository.java	2011-12-16 23:15:21 UTC (rev 15553)
@@ -115,6 +115,10 @@
      * @return
      */
     public POMInfo searchMatchingPOM(Dependency dependency) {
+        if (dependency == null) {
+            return null;
+        }
+        
         POMInfo pom = getPOM(dependency);
         if (pom != null) {
             return pom;




More information about the pkg-java-commits mailing list