add npe check for poi category
This commit is contained in:
parent
20727b0e16
commit
758f6bf0d5
1 changed files with 4 additions and 1 deletions
|
@ -143,7 +143,10 @@ public class AdvancedEditPoiFragment extends BaseOsmAndFragment
|
|||
amenityTagTextView.setText(pt.getEditOsmTag());
|
||||
amenityTextView.setText(pt.getEditOsmValue());
|
||||
} else {
|
||||
amenityTagTextView.setText(getData().getPoiCategory().getDefaultTag());
|
||||
PoiCategory category = getData().getPoiCategory();
|
||||
if (category != null) {
|
||||
amenityTagTextView.setText(category.getDefaultTag());
|
||||
}
|
||||
amenityTextView.setText(getData().getPoiTypeString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue