Commit d8bb0464 authored by Volker Krause's avatar Volker Krause
Browse files

Don't attempt to set empty location identifiers

parent 5e74ebac
......@@ -74,6 +74,9 @@ Line::Mode HafasParser::parseLineMode(int modeId) const
void HafasParser::setLocationIdentifier(Location &loc, const QString &id) const
if (id.isEmpty()) {
if (!m_standardLocationIdentifierType.isEmpty() && UicStationCode::isValid(id, m_uicCountryCodes)) {
loc.setIdentifier(m_standardLocationIdentifierType, id.right(7));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment