mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
Null check for getSelectedEntries
This commit is contained in:
parent
228e5653f9
commit
d5c6e430a5
@ -110,7 +110,13 @@ public class ImportKeysListFragment extends ListFragment implements
|
||||
}
|
||||
|
||||
public ArrayList<ImportKeysListEntry> getSelectedEntries() {
|
||||
return mAdapter.getSelectedEntries();
|
||||
if (mAdapter != null) {
|
||||
return mAdapter.getSelectedEntries();
|
||||
} else {
|
||||
Log.e(Constants.TAG, "Adapter not initialized, returning empty list");
|
||||
return new ArrayList<ImportKeysListEntry>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user