diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-30 21:24:42 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-31 09:55:55 +0200 |
commit | 8a5f9f148893f19d41f2382fa17166791a7cd868 (patch) | |
tree | d95a5000fc709ad0230f5706c5f69494ccb0f4d7 /src/eu/siacs/conversations/utils/PhoneHelper.java | |
parent | f765dc84238ebf9f0b40f7d38c104358e58be91e (diff) |
fixed rare npe in loading of selfi
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/utils/PhoneHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/PhoneHelper.java b/src/eu/siacs/conversations/utils/PhoneHelper.java index bccd7210..67623ea3 100644 --- a/src/eu/siacs/conversations/utils/PhoneHelper.java +++ b/src/eu/siacs/conversations/utils/PhoneHelper.java @@ -74,7 +74,7 @@ public class PhoneHelper { Cursor mProfileCursor = context.getContentResolver().query( Profile.CONTENT_URI, mProjection, null, null, null); - if (mProfileCursor.getCount() == 0) { + if (mProfileCursor == null || mProfileCursor.getCount() == 0) { return null; } else { mProfileCursor.moveToFirst(); |