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
I am testing a micro-service that returns the response content-type as text/csv. If there is no data, it still returns an empty string.
I use Karate csv keyword to convert the response to json for further verification. Everything works fine except when there is an empty response, the scripts throw java.lang.NullPointerException, instead of returning an empty json.
The issue can be reproduce by this: * csv mycsv = ""
The text was updated successfully, but these errors were encountered:
I am testing a micro-service that returns the response content-type as
text/csv
. If there is no data, it still returns an empty string.I use Karate
csv
keyword to convert the response to json for further verification. Everything works fine except when there is an empty response, the scripts throwjava.lang.NullPointerException
, instead of returning an empty json.The issue can be reproduce by this:
* csv mycsv = ""
The text was updated successfully, but these errors were encountered: