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

Commit 5a2c6fbf authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android Git Automerger
Browse files

am e70c6607: Merge "NPE in in AppGlobals#getIntCoreSetting" into honeycomb-mr1

* commit 'e70c6607':
  NPE in in AppGlobals#getIntCoreSetting
parents 5ea551e6 e70c6607
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -55,6 +55,11 @@ public class AppGlobals {
     * @return The core settings.
     */
    public static int getIntCoreSetting(String key, int defaultValue) {
        return ActivityThread.currentActivityThread().getIntCoreSetting(key, defaultValue);
        ActivityThread currentActivityThread = ActivityThread.currentActivityThread();
        if (currentActivityThread != null) {
            return currentActivityThread.getIntCoreSetting(key, defaultValue);
        } else {
            return defaultValue;
        }
    }
}