We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6a3e5 commit 11ff5fbCopy full SHA for 11ff5fb
app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java
@@ -222,10 +222,12 @@ && getParentFragment() instanceof MediaDetailPagerFragment) {
222
223
@OnClick(R.id.mediaDetailImageViewSpacer)
224
public void launchZoomActivity(View view) {
225
- Context ctx = view.getContext();
226
- ctx.startActivity(
227
- new Intent(ctx,ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
228
- );
+ if (media.getImageUrl() != null) {
+ Context ctx = view.getContext();
+ ctx.startActivity(
+ new Intent(ctx, ZoomableActivity.class).setData(Uri.parse(media.getImageUrl()))
229
+ );
230
+ }
231
}
232
233
@Override
0 commit comments