Skip to content

Commit 3782aab

Browse files
John SpurlockAndroid (Google) Code Review
authored andcommitted
Merge "DreamManagerService: Handle missing db value" into jb-mr1-dev
2 parents ba94170 + 4fde81f commit 3782aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/service/dreams/DreamManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static ComponentName[] componentsFromString(String names) {
105105
public ComponentName[] getDreamComponents() {
106106
// TODO(dsandler) don't load this every time, watch the value
107107
String names = Settings.Secure.getString(mContext.getContentResolver(), SCREENSAVER_COMPONENTS);
108-
return componentsFromString(names);
108+
return names == null ? null : componentsFromString(names);
109109
}
110110

111111
// IDreamManager method

0 commit comments

Comments
 (0)