nullpointer fix
This commit is contained in:
parent
5ecfee9dfd
commit
9ffe4c6652
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ public class Navigation implements Iterable{
|
||||||
public boolean equals(Object o){
|
public boolean equals(Object o){
|
||||||
if(o instanceof String)
|
if(o instanceof String)
|
||||||
return this.name.equals(o);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue