diff options
-rw-r--r-- | src/com/android/dialer/list/AllContactsFragment.java | 2 |
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); } } |