Fix property crash
This commit is contained in:
parent
06bd71e2c4
commit
8917f6930a
1 changed files with 6 additions and 8 deletions
|
@ -295,14 +295,12 @@ public class RenderingRuleProperty {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
String ts = val.substring(0, k);
|
||||
if (ts != null) {
|
||||
int[] additionalTypes = obj.getAdditionalTypes();
|
||||
for (int i = 0; i < additionalTypes.length; i++) {
|
||||
TagValuePair vp = obj.getMapIndex().decodeType(additionalTypes[i]);
|
||||
if (vp != null && ts.equals(vp.tag)) {
|
||||
return true;
|
||||
}
|
||||
String ts = val;
|
||||
int[] additionalTypes = obj.getAdditionalTypes();
|
||||
for (int i = 0; i < additionalTypes.length; i++) {
|
||||
TagValuePair vp = obj.getMapIndex().decodeType(additionalTypes[i]);
|
||||
if (vp != null && ts.equals(vp.tag)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue