From 78ed2a40756a255b0bd737b0c6917853e1d475d1 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach@gmail.com" Date: Wed, 24 Aug 2011 10:29:45 +0000 Subject: [PATCH] fixed NPE git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@756 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/dto/LineDestination.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/schildbach/pte/dto/LineDestination.java b/src/de/schildbach/pte/dto/LineDestination.java index bdc8d5ad..322c74a2 100644 --- a/src/de/schildbach/pte/dto/LineDestination.java +++ b/src/de/schildbach/pte/dto/LineDestination.java @@ -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; }