Browse Source

fixed NPE

remove-cryptography-dependency
Herbert Poul 5 years ago
parent
commit
1f26f87920
  1. 3
      lib/src/kdbx_object.dart

3
lib/src/kdbx_object.dart

@ -98,7 +98,8 @@ abstract class KdbxObject extends KdbxNode {
if (dirty) {
times.modifiedNow();
if (/*!isDirty && */ dirty) {
file.dirtyObject(this);
// during initial `create` the file will be null.
file?.dirtyObject(this);
}
}
super.isDirty = dirty;

Loading…
Cancel
Save