diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index 82fc513374..d49357cbc9 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -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); + } } }