update commons to 3.12.17

This commit is contained in:
tibbi
2018-02-21 21:38:26 +01:00
parent eebd4c80d0
commit 0467112cc7
7 changed files with 18 additions and 15 deletions

View File

@ -105,10 +105,12 @@ class RootHelpers {
files.forEachIndexed { index, fileDirItem ->
var line = lines[index]
if (line.isNotEmpty() && line != "0") {
line = line.substring(fileDirItem.path.length).trim()
val size = line.split(" ")[0]
if (size.areDigitsOnly()) {
fileDirItem.size = size.toLong()
if (line.length >= fileDirItem.path.length) {
line = line.substring(fileDirItem.path.length).trim()
val size = line.split(" ")[0]
if (size.areDigitsOnly()) {
fileDirItem.size = size.toLong()
}
}
}
}