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

Allow empty callstack in AS::Deprecation#warn #46001

Conversation

jonathanhefner
Copy link
Member

This fixes an "undefined method 'path' for nil:NilClass" error in Deprecation::Reporting#extract_callstack when the callstack is empty, either because it was specified as such or because the warn call was not sufficiently deep in a call tree (e.g. at the top level of a new thread).

This fixes an "undefined method 'path' for nil:NilClass" error in
`Deprecation::Reporting#extract_callstack` when the callstack is empty,
either because it was specified as such or because the `warn` call was
not sufficiently deep in a call tree (e.g. at the top level of a new
thread).
@jonathanhefner jonathanhefner merged commit 83eee9a into rails:main Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant