From ea16e43aa706f84aeea6d0d670ed5822aac56bc1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 19 Jun 2018 21:04:24 +0200 Subject: [PATCH] add an mUri null check at PhotoVideoActivity --- .../simplemobiletools/gallery/activities/PhotoVideoActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt index 6741d334b..03910a6e3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt @@ -144,7 +144,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList } override fun onOptionsItemSelected(item: MenuItem): Boolean { - if (mMedium == null) { + if (mMedium == null || mUri == null) { return true }