check empty line at root file handling

This commit is contained in:
tibbi 2018-01-25 15:59:11 +01:00
parent 0dcc77cdc2
commit fc75b4c7d5

View file

@ -104,7 +104,7 @@ class RootHelpers {
override fun commandCompleted(id: Int, exitcode: Int) {
files.forEachIndexed { index, fileDirItem ->
var line = lines[index]
if (line != "0") {
if (line.isNotEmpty() && line != "0") {
line = line.substring(fileDirItem.path.length).trim()
val size = line.split(" ")[0]
if (size.areDigitsOnly()) {