You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (empty(trim($row[$haskey])) || !Uuid::isValid(trim($row[$haskey]))) {
Since I (weird) never ever hit that line of code (it is quite an Exception after all the ifs) I need to investigate which CSV shape triggers it, but the fix is easy.
Convert if (empty(trim($row[$haskey])) || !Uuid::isValid(trim($row[$haskey]))) {
To
if (isset($row[$haskey])) first, then check if its a string, then check the actual validity.
Basically avoid trimming until we know it is a string. I wish PHP had not deprecated trimming NULLs.
The text was updated successfully, but these errors were encountered:
What?
Happens at in the AMI Utility Service at
ami/src/AmiUtilityService.php
Line 1019 in 892a334
Since I (weird) never ever hit that line of code (it is quite an Exception after all the ifs) I need to investigate which CSV shape triggers it, but the fix is easy.
Convert
if (empty(trim($row[$haskey])) || !Uuid::isValid(trim($row[$haskey]))) {
To
if (isset($row[$haskey])) first, then check if its a string, then check the actual validity.
Basically avoid trimming until we know it is a string. I wish PHP had not deprecated trimming NULLs.
The text was updated successfully, but these errors were encountered: