Check validation for task - it was crashing the daily creation

This commit is contained in:
Franze Jr 2015-12-01 18:17:35 -03:00
parent f11826b174
commit 81e5ed41a9

View file

@ -129,7 +129,7 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O
private void createCheckListRecyclerView() {
List<ChecklistItem> checklistItems = new ArrayList<>();
if (task.getChecklist() != null) {
if (task != null && task.getChecklist() != null) {
checklistItems = task.getChecklist();
}
checklistAdapter = new CheckListAdapter(checklistItems);