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

Commit a08a8569 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE if app context is null" into pi-dev

parents 429a58d1 f1b96103
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1068,12 +1068,16 @@ public final class ThreadedRenderer {
            mInitialized = true;
            mAppContext = context.getApplicationContext();

            nSetDebuggingEnabled(
                    (mAppContext.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0
                    || Build.IS_DEBUGGABLE);
            initSched(renderProxy);

            if (mAppContext != null) {
                final boolean appDebuggable =
                        (mAppContext.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)
                        != 0;
                nSetDebuggingEnabled(appDebuggable || Build.IS_DEBUGGABLE);
                initGraphicsStats();
            }
        }

        private void initSched(long renderProxy) {
            try {