Fix #517 and a few more crashes

This commit is contained in:
len
2016-11-17 21:14:50 +01:00
parent 453f742732
commit 2dc8159d96
3 changed files with 7 additions and 11 deletions
@@ -71,7 +71,7 @@ class SettingsAdvancedFragment : SettingsFragment() {
private fun clearChapterCache() {
val deletedFiles = AtomicInteger()
val files = chapterCache.cacheDir.listFiles()
val files = chapterCache.cacheDir.listFiles() ?: return
val dialog = MaterialDialog.Builder(activity)
.title(R.string.deleting)