Skip to content

Commit

Permalink
Fix NPE crash on milestone edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
phansier committed Dec 17, 2017
1 parent be4ea89 commit e98304c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ private void updateMilestone() {
if (milestone != null) {
titleText.setText(milestone.getTitle());
descriptionText.setText(milestone.getDescription());
dateText.setText(milestone.getDueOn().toString());
Date dueOn = milestone.getDueOn();
if (dueOn != null) {
dateText.setText(dueOn.toString());
} else {
dateText.setText(R.string.none);
}
} else {
titleText.setText(R.string.none);
descriptionText.setText(R.string.none);
Expand Down

0 comments on commit e98304c

Please sign in to comment.