prevent possible NPE

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1446363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-14 22:12:36 +00:00
parent 3d19a1d2d7
commit cd9cb8eb82
1 changed files with 4 additions and 0 deletions

View 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() );
}
}