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

Bug 463973

Summary: Uncaught TypeError: Cannot read property 'ownerDocument' of null (in tooltip.js)
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 8.0   
Target Milestone: 9.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Grant Gayed CLA 2015-04-06 10:55:00 EDT
The following exceptions were recorded by our analytics 6 total times in the last week, in Chrome:

Uncaught TypeError: Cannot read property 'ownerDocument' of null (git-repository.js: 3220, 63)
Uncaught TypeError: Cannot read property 'ownerDocument' of null (edit.js: 3406, 63)


I don't have steps to reproduce these problems.  They both seem to point to the line in tooltip.js:


newTooltipContents = util.createElement(this._tooltipDiv.ownerDocument, "div");
Comment 1 Curtis Windatt CLA 2015-04-06 17:17:41 EDT
I don't see a way to reproduce this either, as the tooltipDiv is created when the constructor for tooltip.js is run.  Perhaps there is some order of operations where the destroy method can be called before a mouse hover completes (as it uses a window timeout).

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=2653c42163648cbe96fb17a2a83e35b889f19a41

Fixed in master with an existence check.