-
Notifications
You must be signed in to change notification settings - Fork 494
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
Fix NullReferenceExceptions during serialization #1081
Conversation
Is this validated or an assumption? |
All the stack traces are from custom converters path, and the default serializer doesn't have any so it shouldn't be an issue. So it's an assumption. |
Micro benchmark showed below Benchmark:
|
Pull Request Template
Description
This fixes observed null reference exceptions during serialization which seems to be caused by some race condition with the custom settings. To avoid this a new JsonSerializer is created for each call.
Type of change
Please delete options that are not relevant.
Closing issues
Put closes #1079