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 { } else {
String ts = val.substring(0, k); String ts = val;
if (ts != null) { int[] additionalTypes = obj.getAdditionalTypes();
int[] additionalTypes = obj.getAdditionalTypes(); for (int i = 0; i < additionalTypes.length; i++) {
for (int i = 0; i < additionalTypes.length; i++) { TagValuePair vp = obj.getMapIndex().decodeType(additionalTypes[i]);
TagValuePair vp = obj.getMapIndex().decodeType(additionalTypes[i]); if (vp != null && ts.equals(vp.tag)) {
if (vp != null && ts.equals(vp.tag)) { return true;
return true;
}
} }
} }
} }