diff options
author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-04-22 03:32:59 +0530 |
---|---|---|
committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-04-22 03:32:59 +0530 |
commit | 09cb00a87c78256f7d085dfde06b61e89ff28a25 (patch) | |
tree | 9b5f7041d757584a0f646d4a588cb13ef89c6f07 /OpenKeychain/src/main/java/org/sufficientlysecure | |
parent | 713f6ba6c79b703881e39d9d642b47f8140f8ace (diff) | |
download | open-keychain-09cb00a87c78256f7d085dfde06b61e89ff28a25.tar.gz open-keychain-09cb00a87c78256f7d085dfde06b61e89ff28a25.tar.bz2 open-keychain-09cb00a87c78256f7d085dfde06b61e89ff28a25.zip |
corrected possible null pointer
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java index 81ff87216..bf7e41045 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java @@ -217,7 +217,7 @@ public class ImportKeysListFragment extends ListFragment implements mLoaderState = new BytesLoaderState(bytes, dataUri); } else if (query != null) { Preferences.CloudSearchPrefs cloudSearchPrefs; - if (keyserver != null) { + if (keyserver == null) { cloudSearchPrefs = Preferences.getPreferences(getActivity()).getCloudSearchPrefs(); } else { cloudSearchPrefs = new Preferences.CloudSearchPrefs(true, true, keyserver); |