Skip to content

Commit 2b267d8

Browse files
Dhina17rmp22
authored andcommitted
base: Fix NPE in GameManagerService
Change-Id: Id62b90dd37e6062792180cfdb19cb3a4fb371d3f Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent e6c91e1 commit 2b267d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

services/core/java/com/android/server/app/GameManagerService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,6 +2413,7 @@ class SettingsObserver extends ContentObserver {
24132413
public void onChange(boolean selfChange, Uri uri) {
24142414
String newValue = Settings.Secure.getString(mContentResolver,
24152415
"game_overlay");
2416+
if (newValue == null) return;
24162417
// We write key and value of the device_config property as a single string
24172418
// from our GameSpace.
24182419
// ';;' is the separator betweeen key and value.

0 commit comments

Comments
 (0)