Navitia: Use default style for unknown products in getLineStyle().

This commit is contained in:
Andreas Schildbach 2016-05-24 09:41:44 +02:00
parent 40cff03e47
commit 389ec22b6a
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ public class FrenchSouthWestProvider extends AbstractNavitiaProvider
return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color)); return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color));
} }
default: default:
throw new IllegalArgumentException("Unhandled product: " + product); return super.getLineStyle(product, code, color);
} }
} }
} }

View file

@ -93,7 +93,7 @@ public class ParisProvider extends AbstractNavitiaProvider
return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color)); return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color));
} }
default: default:
throw new IllegalArgumentException("Unhandled product: " + product); return super.getLineStyle(product, code, color);
} }
} }