Add checking for null
This commit is contained in:
parent
c71efe0555
commit
608fded8f2
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue