Merge "Check null for getPhoneAccount() in VoicemailChannelUtils"
diff --git a/java/com/android/dialer/notification/VoicemailChannelUtils.java b/java/com/android/dialer/notification/VoicemailChannelUtils.java
index 374619a..ddc0f77 100644
--- a/java/com/android/dialer/notification/VoicemailChannelUtils.java
+++ b/java/com/android/dialer/notification/VoicemailChannelUtils.java
@@ -180,6 +180,9 @@
@NonNull Context context, @NonNull PhoneAccountHandle handle) {
PhoneAccount phoneAccount =
context.getSystemService(TelecomManager.class).getPhoneAccount(handle);
+ if (phoneAccount == null) {
+ return;
+ }
NotificationChannel channel =
newChannel(context, getChannelIdForAccount(handle), phoneAccount.getLabel());
migrateVoicemailSoundSettings(context, channel, handle);