summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-11-13 16:15:04 -0800
committerNancy Chen <nancychen@google.com>2015-11-13 16:46:14 -0800
commit492b4f84c8c753840576f1124103ed12d68e2afc (patch)
treeec1c3dab4abbfcd7fb76d6bdf4ac5cc723351301
parentd81cc6c64f3213f571c1f1e7a5c7e59b71491fb0 (diff)
Fix NPE in ListsFragment.
Bug: 25694033 Bug: 25668829 Change-Id: I5254eed0c473fa8a9e801f4fa253d6fdfc885836
-rw-r--r--src/com/android/dialer/list/ListsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java
index cf999e70c..529449830 100644
--- a/src/com/android/dialer/list/ListsFragment.java
+++ b/src/com/android/dialer/list/ListsFragment.java
@@ -360,7 +360,7 @@ public class ListsFragment extends Fragment
* expands a voicemail in the call log.
*/
public void updateTabUnreadCounts() {
- if (mHasActiveVoicemailProvider) {
+ if (mHasActiveVoicemailProvider && mCallLogQueryHandler != null) {
mCallLogQueryHandler.fetchVoicemailUnreadCount();
}
}