Added failsafe

This commit is contained in:
M66B 2020-09-14 17:00:58 +02:00
parent 34dd2073ef
commit 32b8cd87f3
1 changed files with 2 additions and 1 deletions

View File

@ -1571,7 +1571,8 @@ public class FragmentCompose extends FragmentBase {
new SimpleTask<List<EntityAnswer>>() {
@Override
protected List<EntityAnswer> onExecute(Context context, Bundle args) {
return DB.getInstance(context).answer().getAnswers(false);
List<EntityAnswer> answers = DB.getInstance(context).answer().getAnswers(false);
return (answers == null ? new ArrayList<>() : answers);
}
@Override