stevenbenner/jquery-powertip
GitHub で見るCrash When Showing but No Active Hover: Cannot read properties of null (reading 'data')
Open
#184 opened on 2023年1月15日
BugHelp Wanted
説明
I came across a crash while hovering over a number of items that have powertips. This is some sort of open/close race condition, because it doesn't happen often, although I can reproduce it somewhat easily.
The error message is: Cannot read properties of null (reading 'data')
- Update: Link to video of crash here
The image below illustrates the moment of the crash, the tip is open, but there is no active hover. Can it simply be fixed by changing:
if (!session.isClosing) {
hideTip(session.activeHover);
}
to
if (!session.isClosing && session.activeHover) {
hideTip(session.activeHover);
}
Using version 1.3.2


Callstack
hideTip (jquery.powertip.js:1021)
showTip (jquery.powertip.js:912)
queueTipInit (jquery.powertip.js:886)
dequeue (jquery.js)
r.complete (jquery.js)
l (jquery.js)
add (jquery.js)
Kn (jquery.js)
o (jquery.js)
dequeue (jquery.js)
o (jquery.js)
queueTipInit (jquery.powertip.js:887)
dequeue (jquery.js)
o (jquery.js)
queueTipInit (jquery.powertip.js:887)
dequeue (jquery.js)
r.complete (jquery.js)
l (jquery.js)
fireWith (jquery.js)
a (jquery.js)
v.fx.tick (jquery.js)
setInterval (async)
v.fx.timer (jquery.js)
Kn (jquery.js)
o (jquery.js)
dequeue (jquery.js)
o (jquery.js)
queueTipInit (jquery.powertip.js:887)
dequeue (jquery.js)
(anonymous) (jquery.js)
each (jquery.js)
each (jquery.js)
queue (jquery.js)
beginShowTip (jquery.powertip.js:885)
openTooltip (jquery.powertip.js:505)
apiShowTip (jquery.powertip.js:251)
show_docket_tip (user_code)