Fix NPE OsmAnd Live Public transport
This commit is contained in:
parent
457dd18854
commit
21b39fe447
1 changed files with 3 additions and 0 deletions
|
@ -262,6 +262,9 @@ public abstract class MapObject implements Comparable<MapObject> {
|
||||||
if (this == thatObj) {
|
if (this == thatObj) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
if(this.id == null || thatObj.id == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return this.id.longValue() == thatObj.id.longValue() &&
|
return this.id.longValue() == thatObj.id.longValue() &&
|
||||||
Algorithms.objectEquals(getLocation(), thatObj.getLocation()) &&
|
Algorithms.objectEquals(getLocation(), thatObj.getLocation()) &&
|
||||||
Algorithms.objectEquals(this.getName(), thatObj.getName()) &&
|
Algorithms.objectEquals(this.getName(), thatObj.getName()) &&
|
||||||
|
|
Loading…
Reference in a new issue