]> source.dussan.org Git - archiva.git/commitdiff
prevent possible NPE
authorOlivier Lamy <olamy@apache.org>
Thu, 14 Feb 2013 22:12:36 +0000 (22:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 14 Feb 2013 22:12:36 +0000 (22:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1446363 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/PropertyEntry.java

index c13bf8fc92b11b55fe30ce7732e839b19f6e22bf..4a86bca09c076336e8b07d861cd0cf15a6c29d03 100644 (file)
@@ -79,6 +79,10 @@ public class PropertyEntry
 
     public int compareTo( PropertyEntry o )
     {
+        if (o == null || o.getKey() == null)
+        {
+            return 1;
+        }
         return this.key.compareTo( o.getKey() );
     }
 }