We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a questionable test/cast pair in OrleansJsonSerializer.cs:
AddressableType.IsAssignableFrom(objectType)
var val = (GrainReference)value;
If the instance is Addressable but not a GrainReference, you get an NPE next.
Would it maybe more correct to test sth along of objectType is GrainReference?
objectType is GrainReference
The text was updated successfully, but these errors were encountered:
Well spotted. It should be cast to IAddressable and converted to GrainReference using the non-generic AsReference extension method:
IAddressable
GrainReference
AsReference
orleans/src/Orleans.Core.Abstractions/Core/GrainExtensions.cs
Line 20 in 2195a32
Would you be willing to open a PR?
Sorry, something went wrong.
Fix for Issue dotnet#8322 Questionable test/cast pair in OrleansJsonS…
8129894
…erializer.cs
Fix for Issue #8322 Questionable test/cast pair in OrleansJsonSeriali…
ec31259
…zer.cs (#8329)
No branches or pull requests
There is a questionable test/cast pair in OrleansJsonSerializer.cs:
AddressableType.IsAssignableFrom(objectType)
in line 289;var val = (GrainReference)value;
If the instance is Addressable but not a GrainReference, you get an NPE next.
Would it maybe more correct to test sth along of
objectType is GrainReference
?The text was updated successfully, but these errors were encountered: