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

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

Merge "Verify Bundle is not null before using it" into qt-dev

parents a99ff5fa 5973ec96
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -453,14 +453,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 "";
    }