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: Do not crash when event processors throw a lower level Throwable class #1800

Merged
merged 6 commits into from
Nov 11, 2021

Conversation

marandaneto
Copy link
Contributor

@marandaneto marandaneto commented Nov 11, 2021

📜 Description

Fix: Do not crash when event processors throw a lower level Throwable class

💡 Motivation and Context

getsentry/sentry-unity#398

💚 How did you test it?

running it on newer Unity versions

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

LGTM, but I have no idea what I'm doing anyway :D

@marandaneto marandaneto merged commit e1c72cf into main Nov 11, 2021
@marandaneto marandaneto deleted the fix/android-perf-processor-abstractmethoderror branch November 11, 2021 12:20
@@ -235,7 +235,7 @@ private SentryTransaction processTransaction(
for (final EventProcessor processor : eventProcessors) {
try {
transaction = processor.process(transaction, hint);
} catch (Exception e) {
Copy link
Member

Choose a reason for hiding this comment

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

Do we have other places in the codebase we should make this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe yes...

* Returns the event itself
*
* @param event the SentryEvent the SentryEvent
* @param hint the Hint the Hint
Copy link
Contributor

Choose a reason for hiding this comment

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

confusing 🤪

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed, it was auto-generated, didn't realize the confusion :(

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.

5 participants