diff --git a/lib/note.dart b/lib/note.dart index 36c41ecd..35821da6 100644 --- a/lib/note.dart +++ b/lib/note.dart @@ -12,10 +12,9 @@ class Note implements Comparable { Map extraProperties = new Map(); Note({this.created, this.body, this.fileName, this.extraProperties}) { - assert(this.created != null); - assert(this.body != null); - assert(this.fileName != null); - + if (created == null) { + created = DateTime(0, 0, 0, 0, 0, 0, 0, 0); + } if (extraProperties == null) { extraProperties = new Map(); }