Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 457160

Summary: NPE in editor mouse move handler
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt
Version: unspecified   
Target Milestone: 8.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Grant Gayed CLA 2015-01-09 12:36:42 EST
Our logging of uncaught errors has logged many NPE's at editor/editor.js:828:

if (!tooltip.OKToHover(self._listener.lastMouseX, self._listener.lastMouseY)) { return; }

It looks like "self._listener" can be null when this line is hit.  Blame says that this line was introduced as part of the work for bug 429250.
Comment 1 Eric Moffatt CLA 2015-01-13 14:19:08 EST
I've added a check for 'self._listener' to account for situations where the state may have changed before the event fires...

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=12d00ba8f5f692f57b758b44da5e0aa12f6fae70

We likely also want to 'clear' the timeout but I'm not sure where the code should go...