Don't allow null fares

This commit is contained in:
Doug Keen 2016-10-17 08:58:40 -07:00
parent b6b96abe20
commit d96c7d4021
1 changed files with 1 additions and 1 deletions

View File

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