Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342311 - [ToolItem] Application crash on item-hover
Summary: [ToolItem] Application crash on item-hover
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 12:07 EDT by Tim Buschtoens CLA
Modified: 2011-04-11 05:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Buschtoens CLA 2011-04-08 12:07:53 EDT
To reproduce use workbench-demo with business design, hover the same tool-item twice: 

Javascript error occurred:

Error: Could not apply state appearance TypeError: node.parentNode is null
Comment 1 Tim Buschtoens CLA 2011-04-08 12:09:15 EDT
I commited a quickfix using try-catch to CVS HEAD. It seems to have no side-effects. I will try to find a real solution as soon as possible.
Comment 2 Tim Buschtoens CLA 2011-04-11 05:09:03 EDT
Fixed in CVS HEAD.

The exact problematic order was this:
- setting a rounded border / no gradient
- flush
- setting no border
- flush
- setting gradient
- flush

GraphicsMixin would not understand that the shape from the border was already removed when setting the gradient.