From 562476a43b5f4fe66de437a0e31fd6bf7b177697 Mon Sep 17 00:00:00 2001 From: Dhina17 Date: Thu, 13 Jun 2024 16:29:18 +0530 Subject: [PATCH] base: Fix NPE in GameManagerService Change-Id: Id62b90dd37e6062792180cfdb19cb3a4fb371d3f Signed-off-by: Pranav Vashi Signed-off-by: Ghosuto --- .../core/java/com/android/server/app/GameManagerService.java | 1 + 1 file changed, 1 insertion(+) 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.