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: Check for initialized Client in AddBreadcrumbs #20

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

tonyo
Copy link
Contributor

@tonyo tonyo commented Jun 25, 2019

Otherwise, we get a segfault at https://github.com/getsentry/sentry-go/blob/master/hub.go#L184 when Client is not initialized (e.g., empty DSN)

@tonyo tonyo requested a review from kamilogorek June 25, 2019 09:17
@kamilogorek
Copy link
Contributor

We can most likely just store it as is, without checcking for BeforeBreadcrumb and MaxBreadcrumbs as they live on the scope anyway. Will think about it next week.

@kamilogorek kamilogorek merged commit 3dd1068 into master Jul 1, 2019
@kamilogorek kamilogorek deleted the fix/segfault-empty-client branch July 1, 2019 12:44
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.

2 participants