From 3317396dbcdeeca8fbef984f3097a10c2da2a7fe Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 10 Nov 2016 17:56:30 +0100 Subject: [PATCH] EFA: Handle missing destination in elements in mobile locations query. --- enabler/src/de/schildbach/pte/AbstractEfaProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java index e29436f4..6d8d5cda 100644 --- a/enabler/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/enabler/src/de/schildbach/pte/AbstractEfaProvider.java @@ -1741,8 +1741,8 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider { final String co = XmlPullUtil.valueTag(pp, "co"); final String productType = tyOrCo ? ty : co; XmlPullUtil.optValueTag(pp, "prid", null); - final String destinationName = normalizeLocationName(XmlPullUtil.valueTag(pp, "des")); - destination = new Location(LocationType.ANY, null, null, destinationName); + final String destinationName = normalizeLocationName(XmlPullUtil.optValueTag(pp, "des", null)); + destination = destinationName != null ? new Location(LocationType.ANY, null, null, destinationName) : null; XmlPullUtil.optValueTag(pp, "dy", null); final String de = XmlPullUtil.optValueTag(pp, "de", null); final String productName = n != null ? n : de;