From e35b0efae9406cd5fa5c80b487e4a4846d6e485d Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 23 Jun 2015 16:52:41 -0700 Subject: Protect against CP2 crash in Dialer Bug: 21755796 Change-Id: I81a337db0728455ffa72b3067bc5d2260dd03db8 --- src/com/android/dialer/list/AllContactsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 loader, Cursor data) { super.onLoadFinished(loader, data); - if (data.getCount() == 0) { + if (data == null || data.getCount() == 0) { mEmptyListView.setVisibility(View.VISIBLE); } } -- cgit v1.2.3