When saving customers if the tj_exemption_regions or tj_last_sync are null, we get the following PHP errors. This occcurs on Magento 2.4.6-P5 and PHP 8.2. This did not occur on PHP7.4 for us.
Call to a member function getValue() on null at vendor/taxjar/module-taxjar/Observer/Customer/Save.php:57
Call to a member function getValue() on null in vendor/taxjar/module-taxjar/Observer/Customer/Save.php:80
Steps to Reproduce
Go edit a customer
Make sure the last sync date and exempt regions are null.
Save the customer
Expected Result
Editing the customer should be successful
Actual Result
PHP error - customer does not save.
Versions
Magento 2.4.6-p5
[X] Magento 2.4
[ ] Magento 2.3
[ ] Magento Open Source (fka Magento 2 Community Edition)
Prerequisites
Description
When saving customers if the tj_exemption_regions or tj_last_sync are null, we get the following PHP errors. This occcurs on Magento 2.4.6-P5 and PHP 8.2. This did not occur on PHP7.4 for us.
Call to a member function getValue() on null at vendor/taxjar/module-taxjar/Observer/Customer/Save.php:57
Call to a member function getValue() on null in vendor/taxjar/module-taxjar/Observer/Customer/Save.php:80
Steps to Reproduce
Expected Result
Editing the customer should be successful
Actual Result
PHP error - customer does not save.
Versions
Magento 2.4.6-p5
[X] Magento 2.4
[ ] Magento 2.3
[ ] Magento Open Source (fka Magento 2 Community Edition)
[X] Adobe Commerce (fka Magento 2 Enterprise Edition)
[X] PHP 8.2
[ ] PHP 8.1
[ ] PHP 7.4
[ ] PHP 7.3