summaryrefslogtreecommitdiff
path: root/src/objectvalidation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/objectvalidation.cpp')
-rw-r--r--src/objectvalidation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/objectvalidation.cpp b/src/objectvalidation.cpp
index b451aed..e6a1464 100644
--- a/src/objectvalidation.cpp
+++ b/src/objectvalidation.cpp
@@ -100,7 +100,9 @@ void validate(const Todo& todo)
{
ASSERTVALID(todo.start());
ASSERTVALID(todo.due());
- ASSERTEQUAL(todo.start().timezone(), todo.due().timezone());
+ if (todo.start().isValid() && todo.due().isValid()) {
+ ASSERTEQUAL(todo.start().timezone(), todo.due().timezone());
+ }
}
void validate(const Journal& journal)