summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-06-23 16:52:41 -0700
committerYorke Lee <yorkelee@google.com>2015-06-23 16:52:41 -0700
commite35b0efae9406cd5fa5c80b487e4a4846d6e485d (patch)
treeb2fe7d9c500853c77e02393456c98fc38aad2b68
parent8f25a4d230989a184aa64c80330503d3fabe8490 (diff)
Protect against CP2 crash in Dialer
Bug: 21755796 Change-Id: I81a337db0728455ffa72b3067bc5d2260dd03db8
-rw-r--r--src/com/android/dialer/list/AllContactsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/list/AllContactsFragment.java b/src/com/android/dialer/list/AllContactsFragment.java
index 71c6980f3..d34250b48 100644
--- a/src/com/android/dialer/list/AllContactsFragment.java
+++ b/src/com/android/dialer/list/AllContactsFragment.java
@@ -75,7 +75,7 @@ public class AllContactsFragment extends ContactEntryListFragment<ContactEntryLi
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
super.onLoadFinished(loader, data);
- if (data.getCount() == 0) {
+ if (data == null || data.getCount() == 0) {
mEmptyListView.setVisibility(View.VISIBLE);
}
}