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
When concurrently validating an instance of a class which uses RequiredIfAttribute, multiple threads share the same instance of RequiredIfAttribute (likely by design), and it breaks in ExpressiveAttribute.AdjustMemberName as it's setting PropertyType to null on the RequiredIfAttribute instance which is used by other threads, which might throw NullReferenceException when the PropertyType is null.
The text was updated successfully, but these errors were encountered:
xhafan
added a commit
to SmartGuideApp/UoN.ExpressiveAnnotations.NetCore
that referenced
this issue
Apr 4, 2023
…NullReferenceException - fixing ExpressiveAttribute temporarily setting PropertyType to null on a shared attribute instance, causing other threads to throw NullReferenceException
xhafan
added a commit
to SmartGuideApp/ExpressiveAnnotations
that referenced
this issue
Apr 4, 2023
…NullReferenceException - fixing ExpressiveAttribute temporarily setting PropertyType to null on a shared attribute instance, causing other threads to throw NullReferenceException
When concurrently validating an instance of a class which uses
RequiredIfAttribute
, multiple threads share the same instance ofRequiredIfAttribute
(likely by design), and it breaks inExpressiveAttribute.AdjustMemberName
as it's settingPropertyType
to null on theRequiredIfAttribute
instance which is used by other threads, which might throwNullReferenceException
when thePropertyType
is null.The text was updated successfully, but these errors were encountered: