From 2daa1a7c4752d837a09b1ac241d9cea1871c029f Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 20 Nov 2016 11:19:05 +0100 Subject: [PATCH] catch null content --- .../osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index dfe15d8e66..9a4dd64429 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -374,7 +374,7 @@ public class AmenityMenuBuilder extends MenuBuilder { final String langSelected = lng; String content = amenity.getDescription(langSelected); - vl = Html.fromHtml(content).toString(); + vl = (content != null) ? Html.fromHtml(content).toString() : ""; if (vl.length() > 300) { vl = vl.substring(0, 300); }