fix nullpointer on button push while data is still loading

fixes #934
This commit is contained in:
Vincent Breitmoser 2014-10-03 23:08:32 +02:00
parent d5c6e430a5
commit f03822fefd

View File

@ -91,6 +91,9 @@ public class ImportKeysAdapter extends ArrayAdapter<ImportKeysListEntry> {
public ArrayList<ImportKeysListEntry> getSelectedEntries() {
ArrayList<ImportKeysListEntry> result = new ArrayList<ImportKeysListEntry>();
if (mData == null) {
return result;
}
for (ImportKeysListEntry entry : mData) {
if (entry.isSelected()) {
result.add(entry);