Fix possible npe
This commit is contained in:
parent
92fd3a15cd
commit
eb56062560
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ public class OptionsCard extends BaseCard {
|
||||||
items.add(createShareItem());
|
items.add(createShareItem());
|
||||||
|
|
||||||
if (fileAvailable) {
|
if (fileAvailable) {
|
||||||
items.add(createUploadOsmItem());
|
BaseBottomSheetItem uploadOsmItem = createUploadOsmItem();
|
||||||
|
if (uploadOsmItem != null) {
|
||||||
|
items.add(uploadOsmItem);
|
||||||
|
}
|
||||||
items.add(createDividerItem());
|
items.add(createDividerItem());
|
||||||
items.add(createEditItem());
|
items.add(createEditItem());
|
||||||
items.add(createRenameItem());
|
items.add(createRenameItem());
|
||||||
|
|
Loading…
Reference in a new issue