mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
fixed NPE
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@756 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
1f1debc0d0
commit
78ed2a4075
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue