From 7ffba4bb942324f9eb4ac559e3123420cf46f834 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach" Date: Thu, 30 Sep 2010 17:13:19 +0000 Subject: [PATCH] fix handling for empty positions git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@214 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/AbstractEfaProvider.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/de/schildbach/pte/AbstractEfaProvider.java b/src/de/schildbach/pte/AbstractEfaProvider.java index 941e5d80..ae0abaa0 100644 --- a/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/src/de/schildbach/pte/AbstractEfaProvider.java @@ -345,7 +345,12 @@ public abstract class AbstractEfaProvider implements NetworkProvider { String position = pp.getAttributeValue(null, "platform"); if (position != null) - position = "Gl. " + position; + { + if (position.length() != 0) + position = "Gl. " + position; + else + position = null; + } departureTime.clear();