Hafas: Fix handling of lines with unknown product.

This commit is contained in:
Andreas Schildbach 2015-06-16 14:32:50 +02:00
parent d934dfa0d4
commit 9bef580434
7 changed files with 13 additions and 12 deletions

View file

@ -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>();