Skip to content

Commit 51b373e

Browse files
committed
_tooltip could have destroyed by other means in the window for callLater
1 parent 99d5d03 commit 51b373e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

haxe/ui/tooltips/ToolTipManager.hx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,12 @@ class ToolTipManager {
284284

285285
positionToolTip();
286286
Toolkit.callLater(function() {
287-
if (fade == true) {
288-
_toolTip.fadeIn();
289-
} else {
290-
_toolTip.show();
287+
if (_toolTip != null) { // _tooltip could have destroyed by other means in the window for callLater
288+
if (fade == true) {
289+
_toolTip.fadeIn();
290+
} else {
291+
_toolTip.show();
292+
}
291293
}
292294
});
293295

0 commit comments

Comments
 (0)