Skip to content

Commit 2495234

Browse files
committed
Fix bug where array couldn't be used after invalidation
Change-Id: I0d81d0443ae2fbcd1555b1f373335cc5d5086375
1 parent a08491f commit 2495234

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FirebaseDatabaseUI/FUIArray.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ - (void)invalidate {
159159
[_query removeObserverWithHandle:handle.unsignedIntegerValue];
160160
}
161161

162+
[self.handles removeAllObjects];
163+
162164
// Remove all values on invalidation.
163165
[self didUpdate];
164166
for (NSInteger i = 0; i < self.snapshots.count; /* no i++ since we modify the array instead */ ) {

0 commit comments

Comments
 (0)