Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool is not handling null values inside json files, raising null exception. Should be converted to empty on the tables #4

Open
fauosilva opened this issue Jan 21, 2021 · 0 comments

Comments

@fauosilva
Copy link

Example of json file that would raise an exception:

{
"Address": {
"Customertype": null,
"City": "ROUND ROCK",
"AddressType": "Billing",
"PostalCode": "78664",
"CompletePostalCode": "78664",
"Country": "US",
"CustomerAccountType": "",
"OrganizationName": null,
"StateCode": "T",
"LineTwo": "",
"CountryCode": "US",
"LineOne": "1 DELL WAY",
"ProvinceName": "T",
"State": "T"
}
}


Beggining of call stack:

Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Object.GetType()
at ConvertJsonToGherkinExampleTable.Core.TableConverter.Resolvers.HeaderResolver.Resolve(Dictionary`2 json) in /home/runner/work/ConvertJsonToGherkinExampleTable/ConvertJsonToGherkinExampleTable/src/ConvertJsonToGherkinExampleTable.Core/TableConverter/Resolvers/HeaderResolver.cs:line 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant