Fix NPE
This commit is contained in:
parent
6199a45a42
commit
3dff5cd7bb
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ public abstract class MapObject implements Comparable<MapObject> {
|
|||
if (this == thatObj) {
|
||||
return true;
|
||||
} else {
|
||||
if(this.id == null || thatObj.id == null) {
|
||||
if(thatObj == null || this.id == null || thatObj.id == null) {
|
||||
return false;
|
||||
}
|
||||
return this.id.longValue() == thatObj.id.longValue() &&
|
||||
|
|
Loading…
Reference in a new issue