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
In XmlBamlReader there is a property named LastKey:
KeyMappingLastKey{
get {return keys.LastOrDefault();}}
This property can definitely return null, but this is not handled and it causes the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadOptimizedStaticResource()
in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ProcessNext()
in Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadInternal()
in System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
in System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
in System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
in ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadIntoDocument(IAssemblyResolver resolver, AssemblyDefinition asm, Stream stream)
in ILSpy.BamlDecompiler.BamlResourceEntryNode.LoadBaml(AvalonEditTextOutput output)
in ILSpy.BamlDecompiler.BamlResourceEntryNode.<>c__DisplayClass3.<View>b__1()
I think this property is pretty useful. We could definitely replace the two points where it is used with something like:
In
XmlBamlReader
there is a property namedLastKey
:This property can definitely return
null
, but this is not handled and it causes the following exception:I think this property is pretty useful. We could definitely replace the two points where it is used with something like:
The text was updated successfully, but these errors were encountered: