Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5a57976 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix regression

Don't crash if an item is inserted without a slash in its path.
b/13076381

Change-Id: I5cde2adaa038201e0692af3c8ca92540ce75f083
parent 5441745e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1426,7 +1426,7 @@ public class MediaScanner
        }

        int firstSlash = path.lastIndexOf('/');
        if (firstSlash == 0) {
        if (firstSlash <= 0) {
            return false;
        }
        String parent = path.substring(0,  firstSlash);