We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2debbc0 commit a2b47abCopy full SHA for a2b47ab
CHANGELOG.md
@@ -10,4 +10,4 @@
10
## Other ?? Technical stuff, what happened behind the scene
11
-->
12
## Fixes
13
-- Fixed NPE crash on tablets
+- Fixed more NPE crashes
app/src/main/java/eu/kanade/tachiyomi/util/storage/DiskUtil.kt
@@ -20,7 +20,7 @@ object DiskUtil {
20
fun getDirectorySize(f: File): Long {
21
var size: Long = 0
22
if (f.isDirectory) {
23
- for (file in f.listFiles()!!) {
+ for (file in f.listFiles().orEmpty()) {
24
size += getDirectorySize(file)
25
}
26
} else {
0 commit comments