Skip to content

Commit 227f416

Browse files
committed
Fix decoding subscriptions from status
1 parent 98d73e2 commit 227f416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/powersync_core/lib/src/web/sync_worker_protocol.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ extension type SerializedSyncStatus._(JSObject _) implements JSObject {
328328
},
329329
streamSubscriptions: switch (streamSubscriptions) {
330330
null => null,
331-
final serialized => (json.decode(serialized) as List)
332-
.map((e) => CoreActiveStreamSubscription.fromJson(
331+
final serialized => (json.decode(serialized) as List?)
332+
?.map((e) => CoreActiveStreamSubscription.fromJson(
333333
e as Map<String, Object?>))
334334
.toList(),
335335
},

0 commit comments

Comments
 (0)