Skip to content

Commit fc75b4c

Browse files
committed
check empty line at root file handling
1 parent 0dcc77c commit fc75b4c

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/helpers

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/helpers/RootHelpers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class RootHelpers {
104104
override fun commandCompleted(id: Int, exitcode: Int) {
105105
files.forEachIndexed { index, fileDirItem ->
106106
var line = lines[index]
107-
if (line != "0") {
107+
if (line.isNotEmpty() && line != "0") {
108108
line = line.substring(fileDirItem.path.length).trim()
109109
val size = line.split(" ")[0]
110110
if (size.areDigitsOnly()) {

0 commit comments

Comments
 (0)