diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index a4010b49..d83e34d1 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -1445,6 +1445,9 @@ namespace PckStudio // Retrieve the node at the drop location. TreeNode targetNode = treeViewMain.GetNodeAt(targetPoint); + if (targetNode is null) + return; + bool isTargetPckFile = targetNode.IsTagOfType(); if (e.Data.GetData(dataFormat) is not TreeNode draggedNode)