From 30770f82e758780cf457fba7247e1700e1dc5445 Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Fri, 16 Mar 2018 17:37:49 -0700 Subject: Check if parent is null since fetch call can be called while Dialer is paused. Bug: 73972084 Test: n/a PiperOrigin-RevId: 189418664 Change-Id: I3dadea08dad1f2a594f5a7e0daf055721c3222a3 --- .../android/dialer/app/calllog/VisualVoicemailCallLogFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'java') diff --git a/java/com/android/dialer/app/calllog/VisualVoicemailCallLogFragment.java b/java/com/android/dialer/app/calllog/VisualVoicemailCallLogFragment.java index f1ede8908..458c0526f 100644 --- a/java/com/android/dialer/app/calllog/VisualVoicemailCallLogFragment.java +++ b/java/com/android/dialer/app/calllog/VisualVoicemailCallLogFragment.java @@ -151,7 +151,9 @@ public class VisualVoicemailCallLogFragment extends CallLogFragment { @Override public void fetchCalls() { super.fetchCalls(); - FragmentUtils.getParentUnsafe(this, CallLogFragmentListener.class).updateTabUnreadCounts(); + if (FragmentUtils.getParent(this, CallLogFragmentListener.class) != null) { + FragmentUtils.getParentUnsafe(this, CallLogFragmentListener.class).updateTabUnreadCounts(); + } } @Override -- cgit v1.2.3