mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Fix validation on TaskFormActivity
This commit is contained in:
parent
f7379f341a
commit
8e920575f6
1 changed files with 4 additions and 1 deletions
|
|
@ -187,7 +187,10 @@ public class TaskFormActivity extends AppCompatActivity implements AdapterView.O
|
|||
if (taskId != null) {
|
||||
Task task = new Select().from(Task.class).byIds(taskId).querySingle();
|
||||
this.task = task;
|
||||
populate(task);
|
||||
if(task != null){
|
||||
populate(task);
|
||||
}
|
||||
|
||||
setTitle(task);
|
||||
|
||||
btnDelete.setEnabled(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue