Don't allow null fares

This commit is contained in:
Doug Keen 2016-10-17 08:58:40 -07:00
parent b6b96abe20
commit d96c7d4021

View File

@ -36,7 +36,7 @@ public class FareContentHandler extends DefaultHandler {
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {
if (localName.equals("fare")) {
if (localName.equals("fare") && currentValue != null) {
fare = "$" + currentValue;
}
isParsingTag = false;