Merge "Guard against NPE in ThreadedRenderer"

This commit is contained in:
TreeHugger Robot
2021-11-29 23:30:20 +00:00
committed by Android (Google) Code Review

View File

@@ -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":