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
{{ message }}
Repository navigation
nullref when StructuredFormatDisplay has bogus property name on portable profile #309
Area-Debugstepping, debug points, stacks and moreBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.good first issue
If one provides a bogus property name to StructuredFormatDisplay, a reasonable error is expected. On portable profiles we instead get a nullref error message.
test cenwoiwe12: expected
'<StructuredFormatDisplay exception: Method 'Test+CheckDisplayAttributes12+Foo.Val{Hello' not found.>' but produced
'<StructuredFormatDisplay exception: Object reference not set to an instance of an object.>'
Culprit is these lines I believe. If first reflection call returns null, second line will nullref. We should be checking for that and throwing a better error.
Testing is a bit tricky due to need for portable -- suggestion when doing private validation is to strip down the core\portable test code to include only the printf tests, then run from there. I can provide more details as needed.
Area-Debugstepping, debug points, stacks and moreBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.good first issue
Activity
latkin commentedon Mar 17, 2015
Marking up for grabs as the fix is very small.
Testing is a bit tricky due to need for portable -- suggestion when doing private validation is to strip down the core\portable test code to include only the
printftests, then run from there. I can provide more details as needed.latkin commentedon Aug 4, 2015
ping on up-for-grabs
dsyme commentedon Feb 2, 2017
Because this involves a corner case in portable profiles only, and .NET Standard is the new new, I think we can close this.