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

Commit 13c55498 authored by Sanguk Jeon's avatar Sanguk Jeon Committed by Vishnu Nair
Browse files

Guard against NPE in ThreadedRenderer

Bug: b/168319139
Test: compile & verify basic functions working

Change-Id: Iaa2a6b7362d31f3501b3dd67f5af790ba3aebd24
parent 64528ba8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -613,7 +613,10 @@ public final class ThreadedRenderer extends HardwareRenderer {
        // If there's no arguments, eg 'dumpsys gfxinfo', then dump everything.
        // If there's a targetted package, eg 'dumpsys gfxinfo com.android.systemui', then only
        // dump the summary information
        int flags = (args == null || args.length == 0) ? FLAG_DUMP_ALL : 0;
        if (args == null || args.length == 0) {
            return FLAG_DUMP_ALL;
        }
        int flags = 0;
        for (int i = 0; i < args.length; i++) {
            switch (args[i]) {
                case "framestats":