Merge pull request #1212 from adithyaphilip/qr-result

Corrected possible null pointer with key import
This commit is contained in:
Dominik Schürmann 2015-04-22 01:04:22 +02:00
commit b0c87e2372

View File

@ -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);