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