mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 14:49:50 +00:00
Fix null string in Location.uniqueShortName()
This commit is contained in:
parent
6ea46a8fe9
commit
75be137e40
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public final class Location implements Serializable
|
|||
|
||||
public final String uniqueShortName()
|
||||
{
|
||||
if (name != null && Arrays.binarySearch(NON_UNIQUE_NAMES, name) >= 0)
|
||||
if (place != null && name != null && Arrays.binarySearch(NON_UNIQUE_NAMES, name) >= 0)
|
||||
return place + ", " + name;
|
||||
else if (name != null)
|
||||
return name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue