nullpointer fix

This commit is contained in:
Ziver Koc 2018-12-03 18:52:56 +01:00
parent 5ecfee9dfd
commit 9ffe4c6652

View file

@ -149,7 +149,7 @@ public class Navigation implements Iterable{
public boolean equals(Object o){
if(o instanceof String)
return this.name.equals(o);
return this == o || Objects.equals(this.id, ((Navigation) o).id);
return this == o || o != null && Objects.equals(this.id, ((Navigation) o).id);
}