Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Created Unassigned: Designer: EntityTypeBase.GetBaseTypeNameValue() should check for null ModelXRef [1143]

$
0
0
I ran the InProcTests repeatedly from within another InProcTest, iterating on all of them for a period of time, and discovered that at a certain point I'd get a NullReferenceException at Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityTypeBase.GetBaseTypeNameValue().

The current implementation does not check for null conditions on the ModelXRef property, so when and if it gets to be null the call to GetExisting() will make the application throw. The fix is to check whether ModelXRef is null before making the call to GetExisting().

The conditions that led to this property being null are still being investigated but since the fix to avoid Visual Studio crash is trivial I asume it's also safe to go ahead with it.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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