fixed NPE

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@756 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-08-24 10:29:45 +00:00
parent 1f1debc0d0
commit 78ed2a4075

View file

@ -58,7 +58,7 @@ public final class LineDestination
return false;
if (this.destinationId != other.destinationId)
return false;
if (!this.destination.equals(other.destination))
if (!nullSafeEquals(this.destination, other.destination))
return false;
return true;
}
@ -71,7 +71,7 @@ public final class LineDestination
hashCode *= 29;
hashCode += destinationId;
hashCode *= 29;
hashCode += destination.hashCode();
hashCode += nullSafeHashCode(destination);
return hashCode;
}