Fix NPE in Dreams settings.
Handle the null case to avoid crashing Settings. Change-Id: I257b766370bd604e0af5b332241619258fb732c9
This commit is contained in:
@@ -80,7 +80,9 @@ public class DreamComponentPreference extends Preference {
|
|||||||
ServiceManager.getService("dreams"));
|
ServiceManager.getService("dreams"));
|
||||||
try {
|
try {
|
||||||
cn = dm.getDreamComponent();
|
cn = dm.getDreamComponent();
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) { }
|
||||||
|
|
||||||
|
if (cn == null) {
|
||||||
setSummary("(unknown)");
|
setSummary("(unknown)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user