aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure
diff options
context:
space:
mode:
authorAdithya Abraham Philip <adithyaphilip@gmail.com>2015-04-22 03:32:59 +0530
committerAdithya Abraham Philip <adithyaphilip@gmail.com>2015-04-22 03:32:59 +0530
commit09cb00a87c78256f7d085dfde06b61e89ff28a25 (patch)
tree9b5f7041d757584a0f646d4a588cb13ef89c6f07 /OpenKeychain/src/main/java/org/sufficientlysecure
parent713f6ba6c79b703881e39d9d642b47f8140f8ace (diff)
downloadopen-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.java2
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);