diff --git a/services/core/java/com/android/server/app/GameManagerService.java b/services/core/java/com/android/server/app/GameManagerService.java index d7fc3d4a7123e..61d2ff912c609 100644 --- a/services/core/java/com/android/server/app/GameManagerService.java +++ b/services/core/java/com/android/server/app/GameManagerService.java @@ -2410,6 +2410,7 @@ public final class GameManagerService extends IGameManagerService.Stub { public void onChange(boolean selfChange, Uri uri) { String newValue = Settings.Secure.getString(mContentResolver, "game_overlay"); + if (newValue == null) return; // We write key and value of the device_config property as a single string // from our GameSpace. // ';;' is the separator betweeen key and value.