quick fix for npe
This commit is contained in:
parent
e8af93db6f
commit
59f479098a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class OsmMapUtils {
|
|||
return getWeightCenterForWay(((Way) e));
|
||||
} else if (e instanceof Relation) {
|
||||
List<LatLon> list = new ArrayList<LatLon>();
|
||||
if (e.getTag("type").equals("multipolygon")) {
|
||||
if (e.getTag("type") != null && e.getTag("type").equals("multipolygon")) {
|
||||
MultipolygonBuilder original = new MultipolygonBuilder();
|
||||
original.setId(e.getId());
|
||||
|
||||
|
|
Loading…
Reference in a new issue