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

Prevent crash with empty stack trace #204

Merged
merged 5 commits into from
Jul 7, 2023

Conversation

0HyperCube
Copy link
Contributor

@0HyperCube 0HyperCube commented Jul 6, 2023

Goal

Closes #186

Design

If the error has a stack trace but the stacktrace is empty, we should use the fallback stack trace instead of an empty list.

If the stacktrace is empty, we shouldn't crash by calling .first.

@tomlongridge tomlongridge force-pushed the james/plat-9342-empty-stacktrace branch from 949249e to f9e7f9c Compare July 6, 2023 12:31
@0HyperCube 0HyperCube changed the title James/plat 9342 empty stacktrace Stop empty stack trace Jul 6, 2023
@0HyperCube 0HyperCube changed the title Stop empty stack trace Prevent crash with empty stack trace Jul 6, 2023
@tomlongridge tomlongridge requested a review from lemnik July 6, 2023 13:47
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@0HyperCube 0HyperCube merged commit 185a53c into next Jul 7, 2023
@0HyperCube 0HyperCube deleted the james/plat-9342-empty-stacktrace branch July 7, 2023 10:56
@robert-smartbear robert-smartbear mentioned this pull request Jul 17, 2023
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.

Calling .first on an empty List causes a StateError
3 participants