DS-3339 possible nullpointer in ResourcePolicy$hashCode

This commit is contained in:
samuel
2016-09-26 14:23:51 +02:00
parent 7806c6a688
commit b8c118a1fd

View File

@@ -145,7 +145,7 @@ public class ResourcePolicy implements ReloadableEntity<Integer> {
hash = 19 * hash + -1; hash = 19 * hash + -1;
} }
if(this.epersonGroup != null) if(this.getEPerson() != null)
{ {
hash = 19 * hash + this.getEPerson().hashCode(); hash = 19 * hash + this.getEPerson().hashCode();
}else{ }else{