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

Commit 44935c29 authored by Conley Owens's avatar Conley Owens Committed by Android Code Review
Browse files

Merge "Fix for startup NPE."

parents 17ba30b5 5c14d32d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -128,6 +128,9 @@ class UsbObserver extends UEventObserver {

        try {
            File[] files = new File(USB_COMPOSITE_CLASS_PATH).listFiles();
            if (files == null) {
                return; // nothing to do
            }
            for (int i = 0; i < files.length; i++) {
                File file = new File(files[i], "enable");
                FileReader reader = new FileReader(file);