aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/PhoneHelper.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-30 21:24:42 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-30 21:24:42 +0200
commitfe46d361374054ed0cd4ecc29482491ecf2bb1fc (patch)
treea68a5adc10d340688de1c879536e72028e912058 /src/eu/siacs/conversations/utils/PhoneHelper.java
parent1521b91b27f13e5da4d4f9545fa2e99c28be42b8 (diff)
fixed rare npe in loading of selfi
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/utils/PhoneHelper.java2
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();