Skip to content

Commit 9f7e407

Browse files
authored
DepictsFragment: add null check for media (commons-app#5488)
1 parent 84ffffb commit 9f7e407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void onViewCreated(@NonNull android.view.View view, @Nullable Bundle save
106106
nearbyPlace = bundle.getParcelable(SELECTED_NEARBY_PLACE);
107107
}
108108

109-
if(callback!=null){
109+
if(callback!=null || media!=null){
110110
init();
111111
presenter.getDepictedItems().observe(getViewLifecycleOwner(), this::setDepictsList);
112112
}

0 commit comments

Comments
 (0)