Fix npe
This commit is contained in:
parent
5c6229f47b
commit
8e0c1524ee
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue