diff --git a/lib/global.dart b/lib/global.dart index 2227427..7d16925 100644 --- a/lib/global.dart +++ b/lib/global.dart @@ -109,7 +109,8 @@ class VikunjaGlobalState extends State { task.reminders.forEach((reminder) { scheduleNotification("This is your reminder for '" + task.title + "'", task.description, notificationsPlugin, reminder); }); - scheduleNotification("The task '" + task.title + "' is due.", task.description, notificationsPlugin, task.due); + if(task.due != null) + scheduleNotification("The task '" + task.title + "' is due.", task.description, notificationsPlugin, task.due); }) ); });