diff --git a/pkNX.WinForms/MainEditor/EditorPLA.cs b/pkNX.WinForms/MainEditor/EditorPLA.cs index cd020fcf..ebac01ed 100644 --- a/pkNX.WinForms/MainEditor/EditorPLA.cs +++ b/pkNX.WinForms/MainEditor/EditorPLA.cs @@ -47,7 +47,9 @@ DataCache loader(GenericEditor form) return tableCache.Cache; } - Action? cb = addEntryCallback is { } x ? () => x.Invoke(tableCache.Root) : null; + Action? cb = null; + if (addEntryCallback != null) + cb = () => addEntryCallback.Invoke(tableCache.Root); using var form = new GenericEditor(loader, getName, title, rand, cb, canSave); form.ShowDialog();