mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Fix nullpointer in EncryptKeyCompletionView
This commit is contained in:
parent
5ad50b99a2
commit
e91dc022fb
@ -136,7 +136,7 @@ public class EncryptKeyCompletionView extends TokenCompleteTextView
|
||||
where += " AND " + KeyRings.USER_ID + " LIKE ?";
|
||||
|
||||
return new CursorLoader(getContext(), baseUri, KeyAdapter.PROJECTION, where,
|
||||
new String[] { "%" + query + "%" }, null);
|
||||
new String[]{"%" + query + "%"}, null);
|
||||
}
|
||||
|
||||
mAdapter.setSearchQuery(null);
|
||||
@ -156,7 +156,7 @@ public class EncryptKeyCompletionView extends TokenCompleteTextView
|
||||
|
||||
@Override
|
||||
public void showDropDown() {
|
||||
if (mAdapter.getCursor().isClosed()) {
|
||||
if (mAdapter == null || mAdapter.getCursor().isClosed()) {
|
||||
return;
|
||||
}
|
||||
super.showDropDown();
|
||||
|
Loading…
Reference in New Issue
Block a user