Fix NPE in Dreams settings.

Handle the null case to avoid crashing Settings.

Change-Id: I257b766370bd604e0af5b332241619258fb732c9
This commit is contained in:
John Spurlock
2012-08-09 09:03:48 -04:00
parent a1f463cb19
commit 7a99b21a4b

View File

@@ -80,7 +80,9 @@ public class DreamComponentPreference extends Preference {
ServiceManager.getService("dreams"));
try {
cn = dm.getDreamComponent();
} catch (RemoteException ex) {
} catch (RemoteException ex) { }
if (cn == null) {
setSummary("(unknown)");
return;
}