Fix possible npe

This commit is contained in:
Vitaliy 2021-01-17 15:16:17 +02:00
parent 92fd3a15cd
commit eb56062560

View file

@ -82,7 +82,10 @@ public class OptionsCard extends BaseCard {
items.add(createShareItem());
if (fileAvailable) {
items.add(createUploadOsmItem());
BaseBottomSheetItem uploadOsmItem = createUploadOsmItem();
if (uploadOsmItem != null) {
items.add(uploadOsmItem);
}
items.add(createDividerItem());
items.add(createEditItem());
items.add(createRenameItem());