Skip to content

Commit

Permalink
More guards against naturalFrom == null
Browse files Browse the repository at this point in the history
  • Loading branch information
louietyj committed Nov 6, 2016
1 parent 96d6323 commit 0228135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/todo/controllers/UpdateController.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private void updateCalendarItem(TodoListDB db, CalendarItem record, boolean isTa
Task task = (Task) record;
if (dateFrom != null) {
task.setDueDate(dateFrom);
} else if (naturalFrom.trim().equals(STRING_NULL)) {
} else if (naturalFrom != null && naturalFrom.trim().equals(STRING_NULL)) {
task.setDueDate(null);
}
} else {
Expand Down

0 comments on commit 0228135

Please sign in to comment.