aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/PhoneHelper.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-05 21:04:11 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-05 21:04:11 +0100
commit999b9691cb83b0acff1c4656478483686f05d088 (patch)
tree5a622ca1433e85275fa1f0e4d75f5cb7c1256db8 /src/eu/siacs/conversations/utils/PhoneHelper.java
parentb3f038b700f2a84b4283df84d17f4cb6174b228e (diff)
two bugs on tablet fixed
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);
+ }
}
}
}