diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-06 13:48:27 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-06 13:48:27 +0200 |
commit | 3a66c1c25aff1dadf4779c2df0fac04f3a9f3c0a (patch) | |
tree | 3d313a803ee9f8b376888f80202a7387560aaf9e /OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java | |
parent | fabb0389fc6c4b8a92d2681c8dc647b66e687b5b (diff) | |
download | open-keychain-3a66c1c25aff1dadf4779c2df0fac04f3a9f3c0a.tar.gz open-keychain-3a66c1c25aff1dadf4779c2df0fac04f3a9f3c0a.tar.bz2 open-keychain-3a66c1c25aff1dadf4779c2df0fac04f3a9f3c0a.zip |
Testing encrypt by service
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java')
-rw-r--r-- | OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java index 42210db6a..d0fcfe999 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/provider/ProviderHelper.java @@ -768,6 +768,9 @@ public class ProviderHelper { public static AppSettings getApiAppSettings(Context context, Uri uri) { AppSettings settings = new AppSettings(); Cursor cur = context.getContentResolver().query(uri, null, null, null, null); + if (cur == null) { + return null; + } if (cur.moveToFirst()) { settings.setPackageName(cur.getString(cur .getColumnIndex(KeychainContract.ApiApps.PACKAGE_NAME))); |