mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
sanity check
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@34 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
8ea4f316bb
commit
2b76ff857a
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ public final class NetworkProviderFactory
|
|||
|
||||
public static String networkId(final NetworkProvider provider)
|
||||
{
|
||||
if (provider instanceof VbbProvider)
|
||||
if (provider == null)
|
||||
throw new IllegalArgumentException("null provider");
|
||||
else if (provider instanceof VbbProvider)
|
||||
return VbbProvider.NETWORK_ID;
|
||||
else if (provider instanceof RmvProvider)
|
||||
return RmvProvider.NETWORK_ID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue