port NPW fix to core

This commit is contained in:
sonora 2016-11-20 20:03:38 +01:00
parent 5eaea4046c
commit d2a17d4d36

View file

@ -370,7 +370,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
final String langSelected = lng; final String langSelected = lng;
String content = amenity.getDescription(langSelected); String content = amenity.getDescription(langSelected);
vl = Html.fromHtml(content).toString(); vl = (content != null) ? Html.fromHtml(content).toString() : "";
if (vl.length() > 300) { if (vl.length() > 300) {
vl = vl.substring(0, 300); vl = vl.substring(0, 300);
} }