-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(images): Unhandled stream exception #11739
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
Conversation
When trying to load an SVG file the following function throws a null error without providing any information why. With this fix it informs the developer that they may have forgot to install the imagick plugin.
Hmm, don't see this connected with |
@brusch Yeah, that's exactly the problem that getStream() can return null. It throws a null exception on the get-image-thumbnail route in the AdminBundle when trying to load SVGs without having Imagick installed. |
Thanks for your feedback. |
Sorry for the late response! Will do a PR tomorrow, thanks for the ping! |
@marlonbasten 🏓🙃 Thanks! |
@marlonbasten last call 😉 Thanks in advance! |
@brusch Should be done now. I didn't read the "action should return the error image" part. Thanks for being so patient with me :) |
Just directly added the missing annotation reported by PhpStan. |
Thank you very much! |
Changes in this pull request Resolves
With this fix it informs the developer that they may have forgot to install the imagick plugin.
Additional info
When trying to load an SVG file the following function throws a null error without providing any information why.