Closed pekkatki closed 4 years ago
The error seems to be actually caused by
Result[Json.QuerySingleTask]
being null and then being called by .ToString() This was fixed by changing to
!string.IsNullOrEmpty((string)#Result[Json.QuerySingleTask]?.ToString())
which handles the null value. Closing this as a non-issue
Case: some json elements are present based on certain conditions. When doing a query with Frends.Json.Json.QuerySingle (1.1.35) and no such element is found from the json structure(option "Error when not matched" = false), the task returns nothing.
See image below. There is no #result to be found. Not even a null value. This causes a problem when trying to e.g. in excl decision to find out whether the result was null or empty: !string.IsNullOrEmpty(#result[Json.QuerySingleTask].ToString()) causes an error: "Cannot perform runtime binding on a null reference"