mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 01:10:02 +00:00
Hafas: Fix handling of lines with unknown product.
This commit is contained in:
parent
d934dfa0d4
commit
9bef580434
7 changed files with 13 additions and 12 deletions
|
@ -364,7 +364,8 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
if ("1".equals(type))
|
||||
return Product.BUS;
|
||||
|
||||
return null;
|
||||
// skip parsing of "common" lines
|
||||
throw new IllegalStateException("cannot normalize type '" + type + "'");
|
||||
}
|
||||
|
||||
private static final Map<String, Style> STYLES = new HashMap<String, Style>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue