Skip to content

Commit

Permalink
check tableEditor not null in treeView1_BeforeSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Jan 17, 2025
1 parent d8d9faf commit cafe130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UAssetGUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ public void UpdateModeFromSelectedNode(TreeNode e)

private void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e)
{
if (tableEditor.dirtySinceLastLoad)
if (tableEditor != null && tableEditor.dirtySinceLastLoad)
{
// force refresh before tabbing out if we need to finalize changes before serialization (typically, when null entries exist to get rid of)
// we don't just do this every time for performance reasons
Expand Down

0 comments on commit cafe130

Please sign in to comment.