Fix NPE OsmAnd Live Public transport

This commit is contained in:
Victor Shcherb 2019-03-05 23:51:33 +01:00
parent 457dd18854
commit 21b39fe447

View file

@ -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()) &&