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

Commit 08ebca38 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix NPE

Test: manual
Change-Id: Ie9fe536f28d05953519a9fd477c5eaa3923be991
Fixes: 122685915
parent e5d53034
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -372,7 +372,7 @@ public class NotificationStation extends SettingsPreferenceFragment {
            sb.append("\n")
                    .append(bold(getString(R.string.notification_log_details_sound)))
                    .append(delim);
            if (channel.getImportance() == IMPORTANCE_UNSPECIFIED) {
            if (channel == null || channel.getImportance() == IMPORTANCE_UNSPECIFIED) {

                if (0 != (n.defaults & Notification.DEFAULT_SOUND)) {
                    sb.append(getString(R.string.notification_log_details_default));
@@ -387,7 +387,7 @@ public class NotificationStation extends SettingsPreferenceFragment {
            sb.append("\n")
                    .append(bold(getString(R.string.notification_log_details_vibrate)))
                    .append(delim);
            if (channel.getImportance() == IMPORTANCE_UNSPECIFIED) {
            if (channel == null || channel.getImportance() == IMPORTANCE_UNSPECIFIED) {
                if (0 != (n.defaults & Notification.DEFAULT_VIBRATE)) {
                    sb.append(getString(R.string.notification_log_details_default));
                } else if (n.vibrate != null) {