experius / Magento-2-Module-Experius-WysiwygDownloads

Available At Packagist
https://packagist.org/search/?q=experius
Open Software License 3.0
98 stars 24 forks source link

check for null param to avoid json_decode exception #23

Closed AndrewKoransky closed 5 months ago

AndrewKoransky commented 1 year ago

In Magento CE 2.4.4 (PHP 8.1), system was crashing. json_decode was getting a null and throwing an exception. Added a couple of checks to ensure it doesn't crash in this case.

borisvankatwijk commented 5 months ago

This is added in the newest release: https://github.com/experius/Magento-2-Module-Experius-WysiwygDownloads/releases/tag/1.2.1