Add checking for null

This commit is contained in:
PavelRatushnyi 2017-10-03 16:17:49 +03:00
parent c71efe0555
commit 608fded8f2

View file

@ -296,9 +296,11 @@ public class MenuBuilder {
}
public void buildTitleRow(View view) {
String title = mapContextMenu.getTitleStr();
if (title.length() > TITLE_LIMIT) {
buildRow(view, R.drawable.ic_action_note_dark, title, 0, false, null, false, 0, false, null);
if (mapContextMenu != null) {
String title = mapContextMenu.getTitleStr();
if (title.length() > TITLE_LIMIT) {
buildRow(view, R.drawable.ic_action_note_dark, title, 0, false, null, false, 0, false, null);
}
}
}