experius / Magento-2-Module-Experius-WysiwygDownloads

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

check for null param to avoid json_decode exception #23

Closed AndrewKoransky closed 10 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 10 months ago

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