Fix segfault: target can be null when font size is changed

This commit is contained in:
nothingTVatYT
2023-10-03 01:14:35 +02:00
parent 94611c7f7e
commit 78b074e7da

View File

@@ -989,7 +989,7 @@ namespace FlaxEditor.Windows
}
_view.ShowItems(items, _sortType, false, true);
}
else
else if (target != null)
{
// Show folder contents
var items = target.Folder.Children;