aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/PhoneHelper.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/utils/PhoneHelper.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/PhoneHelper.java b/src/eu/siacs/conversations/utils/PhoneHelper.java
index e28f817e..5c652afe 100644
--- a/src/eu/siacs/conversations/utils/PhoneHelper.java
+++ b/src/eu/siacs/conversations/utils/PhoneHelper.java
@@ -81,7 +81,12 @@ public class PhoneHelper {
return null;
} else {
mProfileCursor.moveToFirst();
- return Uri.parse(mProfileCursor.getString(1));
+ String uri = mProfileCursor.getString(1);
+ if (uri==null) {
+ return null;
+ } else {
+ return Uri.parse(uri);
+ }
}
}
}