Add checking for null
This commit is contained in:
parent
c71efe0555
commit
608fded8f2
1 changed files with 5 additions and 3 deletions
|
@ -296,11 +296,13 @@ public class MenuBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void buildTitleRow(View view) {
|
public void buildTitleRow(View view) {
|
||||||
|
if (mapContextMenu != null) {
|
||||||
String title = mapContextMenu.getTitleStr();
|
String title = mapContextMenu.getTitleStr();
|
||||||
if (title.length() > TITLE_LIMIT) {
|
if (title.length() > TITLE_LIMIT) {
|
||||||
buildRow(view, R.drawable.ic_action_note_dark, title, 0, false, null, false, 0, false, null);
|
buildRow(view, R.drawable.ic_action_note_dark, title, 0, false, null, false, 0, false, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void buildNearestWikiRow(View view) {
|
protected void buildNearestWikiRow(View view) {
|
||||||
if (processNearstWiki() && nearestWiki.size() > 0) {
|
if (processNearstWiki() && nearestWiki.size() > 0) {
|
||||||
|
|
Loading…
Reference in a new issue