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
BUGFIX: Avoid fatal error when asset not available #2177
BUGFIX: Avoid fatal error when asset not available #2177
Conversation
This fixes what is basically a merge error. It lead to a method call on an unset variable.
Introduced with #1745 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks odd to have a switch statement with just one case, but maybe keep it since we'll add a lot more extensions in the future?
Code checks out by reading
@kdambekalns can you point me to the method call on the unset variable in this change? (sorry if it's really obvious) |
Yes, I left the |
Sure: it would be |
Ah thanks, ofc, was moved inside the if statement with this 👍 |
and since we assume the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense
This fixes what is basically a merge error. It lead to a method call
on an unset variable.