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

Commit 0d710950 authored by Tim Van Patten's avatar Tim Van Patten Committed by Android (Google) Code Review
Browse files

Merge "Verify Bundle is not null before using it"

parents af5bc93f 5da6a95e
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -344,14 +344,22 @@ public class GraphicsEnvironment {
        final boolean appIsProfileable = isProfileable(context);
        final boolean deviceIsDebuggable = getCanLoadSystemLibraries() == 1;
        if (appIsDebuggable || appIsProfileable || deviceIsDebuggable) {
            String debugPackage;

            String debugPackage =
            if (coreSettings != null) {
                debugPackage =
                        coreSettings.getString(Settings.Global.GLOBAL_SETTINGS_ANGLE_DEBUG_PACKAGE);
            } else {
                ContentResolver contentResolver = context.getContentResolver();
                debugPackage = Settings.Global.getString(contentResolver,
                        Settings.Global.GLOBAL_SETTINGS_ANGLE_DEBUG_PACKAGE);
            }

            if ((debugPackage != null) && (!debugPackage.isEmpty())) {
                return debugPackage;
            }
        }

        return "";
    }