-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
There is a missing Null-conditional operator (?) check on valueToReplace on line 201 in the Gateway.cs. Results in a null reference exception.
See line:
valueToReplace = list.Length > 1 ? valueToReplace?.GetArray<JsonDoc>(list[0]).FirstOrDefault() : valueToReplace.Has(parts[i]) ? valueToReplace?.Get(parts[i]) : null; |
Sample xml
<request timestamp=\"20250424075244\" type=\"payer-new\"><merchantid>[MERCHANTID]</merchantid><channel>MOTO</channel><account>internet</account><orderid>[ORDERID]</orderid><payer ref=\"baeb9071-39d3-4f27-aacf-087e77112c35\" type=\"Retail\"><firstname>Expedia</firstname><surname>VirtualCard</surname><address /><phonenumbers /></payer><sha1hash>16c67bc0e070dbdc4153501868ee6db00cda2a51</sha1hash></request>
ie
valueToReplace = list.Length > 1 ? valueToReplace?.GetArray<JsonDoc>(list[0]).FirstOrDefault() : valueToReplace?.Has(parts[i]) ? valueToReplace?.Get(parts[i]) : null;
Metadata
Metadata
Assignees
Labels
No labels