diff --git a/lib/note.dart b/lib/note.dart index 34927a4c..478f8728 100644 --- a/lib/note.dart +++ b/lib/note.dart @@ -11,7 +11,11 @@ class Note implements Comparable { Map extraProperties = new Map(); - Note({this.created, this.body, this.id, this.extraProperties}); + Note({this.created, this.body, this.id, this.extraProperties}) { + if (extraProperties == null) { + extraProperties = new Map(); + } + } factory Note.fromJson(Map json) { String id;