From 8917f6930ad88702968fc8d7229761295c2f0aa6 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 14 May 2015 11:25:58 +0200 Subject: [PATCH] Fix property crash --- .../net/osmand/render/RenderingRuleProperty.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java b/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java index e853a67026..3a09b9650e 100644 --- a/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java +++ b/OsmAnd-java/src/net/osmand/render/RenderingRuleProperty.java @@ -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; } } }