Skip to content

Commit a563c61

Browse files
committed
add type info to list
1 parent 206d4b7 commit a563c61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dart/lib/src/protocol/contexts.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ class Contexts extends MapView<String, dynamic> {
293293
Contexts(
294294
device: device ?? this.device,
295295
operatingSystem: operatingSystem ?? this.operatingSystem,
296-
runtimes: runtimes ??
297-
this[SentryRuntime.listType], // Don't use unmodifiable list here.
296+
runtimes: runtimes ?? (this[SentryRuntime.listType] as List<SentryRuntime>?) ?? <SentryRuntime>[],
298297
app: app ?? this.app,
299298
browser: browser ?? this.browser,
300299
gpu: gpu ?? this.gpu,

0 commit comments

Comments
 (0)