Fix property crash

This commit is contained in:
Victor Shcherb 2015-05-14 11:25:58 +02:00
parent 06bd71e2c4
commit 8917f6930a

View file

@ -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;
}
}
}