aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-06-25 17:21:51 +0200
committeriNPUTmice <daniel@gultsch.de>2014-06-25 17:21:51 +0200
commitd63a9eb3063e874e24fbe4caa439db73a5a1950f (patch)
tree70dfbe2efeccbc04d5e8896ee6594a1d43e462eb /src/eu/siacs/conversations/utils
parent16c63c91e25b9139b2a2f228cd76817343521a6f (diff)
fixed odd occurrences of a cursor returned by the system being NULL. wtf ukas
Diffstat (limited to 'src/eu/siacs/conversations/utils')
-rw-r--r--src/eu/siacs/conversations/utils/PhoneHelper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/utils/PhoneHelper.java b/src/eu/siacs/conversations/utils/PhoneHelper.java
index 773312bb..bccd7210 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<Cursor> arg0, Cursor cursor) {
+ if (cursor==null) {
+ return;
+ }
while (cursor.moveToNext()) {
Bundle contact = new Bundle();
contact.putInt("phoneid", cursor.getInt(cursor