File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
flutter/lib/src/navigation Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ ### Improvements
6
+
7
+ - Check for type before casting in TTID ([ #2497 ] ( https://github.com/getsentry/sentry-dart/pull/2497 ) )
5
8
6
9
### Fixes
7
10
Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ class TimeToInitialDisplayTracker {
51
51
final _endTimestamp = endTimestamp ?? await determineEndTime ();
52
52
if (_endTimestamp == null ) return ;
53
53
54
- final tracer = transaction as SentryTracer ;
54
+ if (transaction is ! SentryTracer ) {
55
+ return ;
56
+ }
55
57
56
58
final ttidSpan = transaction.startChild (
57
59
SentrySpanOperations .uiTimeToInitialDisplay,
58
- description: '${tracer .name } initial display' ,
60
+ description: '${transaction .name } initial display' ,
59
61
startTimestamp: startTimestamp,
60
62
);
61
63
You can’t perform that action at this time.
0 commit comments