add a null check at deleting medium
This commit is contained in:
parent
6437970df8
commit
91b2cc40e1
1 changed files with 4 additions and 0 deletions
|
@ -908,6 +908,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
}
|
||||
|
||||
private fun checkDeleteConfirmation() {
|
||||
if (getCurrentMedium() == null) {
|
||||
return
|
||||
}
|
||||
|
||||
if (config.tempSkipDeleteConfirmation || config.skipDeleteConfirmation) {
|
||||
deleteConfirmed()
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue