diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-17 02:03:53 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-17 02:03:53 +0000 |
commit | 6560110aa8b3d18b16a3f137f7441723d94334fd (patch) | |
tree | a72ffb798d739b3242d1ec371eac3b70a2ee8a4f /java/com/android/dialer/app | |
parent | 0ff86a86cc00cbd371c978ec235ce39dfec7ae39 (diff) | |
parent | 30770f82e758780cf457fba7247e1700e1dc5445 (diff) |
Merge "Check if parent is null since fetch call can be called while Dialer is paused."
Diffstat (limited to 'java/com/android/dialer/app')
-rw-r--r-- | java/com/android/dialer/app/calllog/VisualVoicemailCallLogFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 |