fix: Uncaught error when recaf popup shows in window that has already been closed
@@ -91,6 +91,8 @@ public class DragPopup {
pop.setX(x - pop.getWidth() / 2);
pop.setY(y - pop.getHeight() / 2);
});
+ // Show only if parent component still exists (by checking its ownership)
+ if (parent.getScene() != null && parent.getScene().getWindow() != null)
pop.show(parent, 0, 0);
});
}
