Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 0643579

Browse files
mhbrownchirayuk
authored andcommitted
fix(change_detector): add null check in _revertToPreviousState
Closes #1691
1 parent 97d2f55 commit 0643579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/change_detection/dirty_checking_change_detector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ class _CollectionChangeRecord<V> implements CollectionChangeRecord<V> {
10011001
_linkedRecords.put(record);
10021002
}
10031003

1004-
prev._next = null;
1004+
if (prev != null) prev._next = null;
10051005
_itTail = prev;
10061006
_undoDeltas();
10071007
}

0 commit comments

Comments
 (0)