Skip to content

DWDS only sends events if it has stats #1470

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

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

elliette
Copy link
Contributor

Will hopefully fix #1468. It's hard to reproduce in a dev environment.

It looks like devToolsStart is being set in two places:

Both of which happen right before _launchDevTools is called. I believe this means devToolsStart is set when DevTools is launched programmatically (eg, by clicking on the Dart Debug Extension), but not when a user copy-pastes the link from their terminal.

@elliette elliette requested a review from annagrin December 16, 2021 23:24
.difference(dwdsStats.devToolsStart)
.inMilliseconds));
}
if (dwdsStats.debuggerStart != null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like debuggerStart is always set, but adding this null check in case anything changes

Copy link
Contributor

@annagrin annagrin left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

NoSuchMethodError: The getter 'microsecondsSinceEpoch' was called on null.
2 participants