From d63a9eb3063e874e24fbe4caa439db73a5a1950f Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Wed, 25 Jun 2014 17:21:51 +0200 Subject: [PATCH] fixed odd occurrences of a cursor returned by the system being NULL. wtf ukas --- src/eu/siacs/conversations/utils/PhoneHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eu/siacs/conversations/utils/PhoneHelper.java b/src/eu/siacs/conversations/utils/PhoneHelper.java index 773312bb3..bccd7210e 100644 --- a/src/eu/siacs/conversations/utils/PhoneHelper.java +++ b/src/eu/siacs/conversations/utils/PhoneHelper.java @@ -38,6 +38,9 @@ public class PhoneHelper { @Override public void onLoadComplete(Loader arg0, Cursor cursor) { + if (cursor==null) { + return; + } while (cursor.moveToNext()) { Bundle contact = new Bundle(); contact.putInt("phoneid", cursor.getInt(cursor