add a null check at deleting medium

This commit is contained in:
tibbi 2018-07-01 11:58:00 +02:00
parent 6437970df8
commit 91b2cc40e1

View file

@ -908,6 +908,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
} }
private fun checkDeleteConfirmation() { private fun checkDeleteConfirmation() {
if (getCurrentMedium() == null) {
return
}
if (config.tempSkipDeleteConfirmation || config.skipDeleteConfirmation) { if (config.tempSkipDeleteConfirmation || config.skipDeleteConfirmation) {
deleteConfirmed() deleteConfirmed()
} else { } else {