Don't allow null fares
This commit is contained in:
parent
b6b96abe20
commit
d96c7d4021
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user