adding some null checks

This commit is contained in:
tibbi 2018-06-21 09:06:25 +02:00
parent 2c9103f323
commit 28f7d4eb6c

View file

@ -182,11 +182,15 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
bottom_delete.beGone()
bottom_edit.setOnClickListener {
openEditor(mUri!!.toString())
if (mUri != null) {
openEditor(mUri!!.toString())
}
}
bottom_share.setOnClickListener {
sharePath(mUri!!.toString())
if (mUri != null) {
sharePath(mUri!!.toString())
}
}
}