From cd9cb8eb82c0891b426c16176312b711e9ec8c24 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 14 Feb 2013 22:12:36 +0000 Subject: [PATCH] prevent possible NPE git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1446363 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/archiva/admin/model/beans/PropertyEntry.java | 4 ++++ 1 file changed, 4 insertions(+) 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() ); } } -- 2.39.5