Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a99b21a authored by John Spurlock's avatar John Spurlock
Browse files

Fix NPE in Dreams settings.

Handle the null case to avoid crashing Settings.

Change-Id: I257b766370bd604e0af5b332241619258fb732c9
parent a1f463cb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
        }