Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(replayer): Fix null objects on playback #38

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Feb 1, 2023

These objects can all be null (e.g. if player is playing and we navigate to a page without player, due to async, the player can be destroyed by the time we try to access these objects). Remove the non-null assertion operator as typescript is right that they can be null.

Fixes https://sentry.sentry.io/issues/2628382889/, https://sentry.sentry.io/issues/3616367681/, https://sentry.sentry.io/issues/2669497075/, https://sentry.sentry.io/issues/3549471392/

These objects can all be null (e.g. if player is playing and we navigate to a page without player, due to async, the player can be destroyed by the time we try to access these objects). Remove the non-null assertion operator as typescript is right that they can be null.
@billyvg billyvg marked this pull request as ready for review February 1, 2023 21:30
@billyvg billyvg changed the title fix(replayer): Fix null objects fix(replayer): Fix null objects on playback Feb 1, 2023
@billyvg billyvg requested review from mydea and Lms24 February 1, 2023 21:31
Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@billyvg billyvg merged commit 85f220f into sentry-v1 Feb 8, 2023
@billyvg billyvg deleted the fix-replayer-null-props branch February 8, 2023 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants