diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-06-27 22:47:17 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-06-27 22:47:17 +0400 |
commit | d68853dc93fe8d9a62cb2e642bc454536a26c67b (patch) | |
tree | e13d952d9eace05c2267d79aebd87009335cde31 /ICSharpCode.NRefactory | |
parent | a71bf193d7e533142b465ad8debccea2cf53ceda (diff) |
Fix missing FreezeList() call to DefaultUnresolvedTypeParameter.Freeze().
This is the probable cause of the following crash (SD UDC-4936):
System.Collections.Generic.KeyNotFoundException
System.Collections.Generic.Dictionary`2.get_Item(TKey key)
ICSharpCode.NRefactory.Utils.FastSerializer.SerializationContext.WriteObjectID(Object instance)
Write_DefaultUnresolvedTypeParameter(SerializationContext, Object)
Diffstat (limited to 'ICSharpCode.NRefactory')
-rw-r--r-- | ICSharpCode.NRefactory/TypeSystem/Implementation/DefaultUnresolvedTypeParameter.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/DefaultUnresolvedTypeParameter.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/DefaultUnresolvedTypeParameter.cs index 31df0746..492d3e22 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/DefaultUnresolvedTypeParameter.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/DefaultUnresolvedTypeParameter.cs @@ -55,6 +55,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation protected virtual void FreezeInternal() { attributes = FreezableHelper.FreezeListAndElements(attributes); + constraints = FreezableHelper.FreezeList(constraints); } public DefaultUnresolvedTypeParameter(SymbolKind ownerType, int index, string name = null) |