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