Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: ModelMetadata.SimpleDisplayText throws NullReferenceException [847]

$
0
0
ASP.NET MVC v3 or earlier:
_ModelMetadata.SimpleDisplayText_ throws _NullReferenceException_ if the Model represents a complex object and it's overridden ToString() return null.
_ModelMetadata.SimpleDisplayText_ invokes _GetSimpleDisplayText()_ . Inside GetSimpleDisplayText(), null checking is missing for the return value of the ToString() method.

This might be fixed in v4.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>