fixed NPE

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@383 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach 2010-12-05 13:49:41 +00:00
parent 33b37691c4
commit 2dfb7f18e1

View file

@ -1278,7 +1278,9 @@ public abstract class AbstractEfaProvider implements NetworkProvider
if (!pp.isEmptyElementTag())
{
XmlPullUtil.enter(pp, "value");
value = pp.getText().trim();
value = pp.getText();
if (value != null)
value = value.trim();
XmlPullUtil.exit(pp, "value");
}