catch null content
This commit is contained in:
parent
9d5b24afbd
commit
2daa1a7c47
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue