add a null check to intent extras at photovideoactivity

This commit is contained in:
tibbi 2017-10-27 10:56:36 +02:00
parent c520c8c557
commit 0b352f1bc0

View file

@ -51,7 +51,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
private fun checkIntent(savedInstanceState: Bundle? = null) { private fun checkIntent(savedInstanceState: Bundle? = null) {
mUri = intent.data ?: return mUri = intent.data ?: return
if (intent.extras.containsKey(REAL_FILE_PATH)) { if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
mUri = intent.extras.get(REAL_FILE_PATH) as Uri mUri = intent.extras.get(REAL_FILE_PATH) as Uri
} }