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,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) {