From a1e1192eabc7d18ead20f4dace42f9fadbce8aad Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 9 Mar 2015 23:18:22 +0100 Subject: [PATCH] Inspector --- OsmAnd-java/src/net/osmand/binary/BinaryInspector.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java b/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java index 07726c39d9..64b768d4d0 100644 --- a/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java +++ b/OsmAnd-java/src/net/osmand/binary/BinaryInspector.java @@ -73,7 +73,8 @@ public class BinaryInspector { // "-zoom=16", // "-bbox=1.74,51.17,1.75,51.16", "-vstats", - "/Users/victorshcherb/osmand/maps/World_basemap_2.obf" + "/Users/victorshcherb/osmand/maps/Netherlands_europe_2.obf" +// "/Users/victorshcherb/osmand/maps/World_basemap_2.obf" }); } else { in.inspector(args); @@ -699,6 +700,9 @@ public class BinaryInspector { for (int i = 0; i < obj.getTypes().length; i++) { int tp = obj.getTypes()[i]; TagValuePair pair = obj.mapIndex.decodeType(tp); + if(pair == null) { + continue; + } processKey(pair.toSimpleString(), st, obj.getObjectNames(), cnt, names); } st.clearObjectStats();