Fix stop name can be null in xmlCoordRequest

This commit is contained in:
Andreas Schildbach 2014-01-12 22:53:47 +01:00
parent f9fd933bfa
commit 0b9985c3e5

View file

@ -635,7 +635,7 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
throw new RuntimeException("unknown type");
final int id = XmlPullUtil.intAttr(pp, "id");
final String name = normalizeLocationName(XmlPullUtil.attr(pp, "name"));
final String name = normalizeLocationName(XmlPullUtil.optAttr(pp, "name", null));
final String place = normalizeLocationName(XmlPullUtil.attr(pp, "locality"));
XmlPullUtil.enter(pp, "coordInfoItem");