Skip to content

Commit

Permalink
Fix a NRE that occured when navigating tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Nov 17, 2024
1 parent e266b66 commit 3e446aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Extensions/dnSpy.BamlDecompiler/BamlTabSaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public static BamlTabSaver TryCreate(IDocumentTab tab, IMessageBoxService messag
return null;
if (tab.UIContext is not IDocumentViewer uiContext)
return null;
if (tab.Content is null)
return null;
var nodes = tab.Content.Nodes.ToArray();
if (nodes.Length != 1)
return null;
Expand Down

0 comments on commit 3e446aa

Please sign in to comment.