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