diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-08-19 12:24:42 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-08-19 12:24:42 +0200 |
commit | 9ebd6d503cc6e80383e441171d06730fce52bd9d (patch) | |
tree | 489f5beeb2d2d7b60dc4bf9b61a3d01462977bd7 /src/main/java/eu/siacs/conversations/utils | |
parent | 569bc435d35e79e667045aa5ed861439ebf5363c (diff) |
catch package manager has died exception
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/PhoneHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java b/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java index b90f06ff..a37f60a0 100644 --- a/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java @@ -97,7 +97,7 @@ public class PhoneHelper { if (packageName != null) { try { return context.getPackageManager().getPackageInfo(packageName, 0).versionName; - } catch (final PackageManager.NameNotFoundException e) { + } catch (final PackageManager.NameNotFoundException | RuntimeException e) { return "unknown"; } } else { |