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

Commit 5c0d50bf authored by Annie Chin's avatar Annie Chin Committed by Android (Google) Code Review
Browse files

Merge "Null-check selected alarm before setting ringtone." into ub-deskclock-dazzle

parents 19abdb14 4e03e611
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -238,6 +238,10 @@ public final class AlarmClockFragment extends DeskClockFragment implements

                // Set the ringtone uri on the alarm.
                final Alarm alarm = mAlarmTimeClickHandler.getSelectedAlarm();
                if (alarm == null) {
                    LogUtils.e("Could not get selected alarm to set ringtone");
                    return;
                }
                alarm.alert = uri;

                // Save the change to alarm.