diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-30 21:24:42 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-30 21:24:42 +0200 |
commit | fe46d361374054ed0cd4ecc29482491ecf2bb1fc (patch) | |
tree | a68a5adc10d340688de1c879536e72028e912058 /src | |
parent | 1521b91b27f13e5da4d4f9545fa2e99c28be42b8 (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(); |