Skip to content

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

Merged
marandaneto merged 6 commits into
mainfrom
fix/android-perf-processor-abstractmethoderror
Nov 11, 2021
Merged

marandaneto merged 6 commits into
mainfrom
fix/android-perf-processor-abstractmethoderror

Conversation

@marandaneto

@marandaneto marandaneto commented Nov 11, 2021 •

Copy link
Copy Markdown
Contributor

📜 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

@romtsn romtsn left a comment

Copy link
Copy Markdown
Contributor

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
for (final EventProcessor processor : eventProcessors) {
try {
transaction = processor.process(transaction, hint);
} catch (Exception e) {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

confusing 🤪

Copy link
Copy Markdown
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