From: Olivier Lamy Date: Thu, 14 Feb 2013 22:12:36 +0000 (+0000) Subject: prevent possible NPE X-Git-Tag: archiva-1.4-M4~191 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cd9cb8eb82c0891b426c16176312b711e9ec8c24;p=archiva.git prevent possible NPE git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1446363 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/PropertyEntry.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/PropertyEntry.java index c13bf8fc9..4a86bca09 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/PropertyEntry.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-api/src/main/java/org/apache/archiva/admin/model/beans/PropertyEntry.java @@ -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() ); } }