corrected possible null pointer

This commit is contained in:
Adithya Abraham Philip 2015-04-22 03:32:59 +05:30
parent 713f6ba6c7
commit 09cb00a87c

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