This commit is contained in:
Victor Shcherb 2019-07-21 21:29:43 +02:00
parent 5c6229f47b
commit 8e0c1524ee

View file

@ -689,10 +689,12 @@ public class RouteDataObject {
return r.getValue();
}
}
for(int i = 0; i < nameIds.length; i++) {
RouteTypeRule r = region.quickGetEncodingRule(nameIds[i]);
if (r.getTag().equals(tag)) {
return names.get(nameIds[i]);
if (nameIds != null) {
for (int i = 0; i < nameIds.length; i++) {
RouteTypeRule r = region.quickGetEncodingRule(nameIds[i]);
if (r.getTag().equals(tag)) {
return names.get(nameIds[i]);
}
}
}
return null;