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

Bug 171740

Summary: Style tag can crash VPD
Product: [WebTools] Java Server Faces Reporter: Cameron Bateman <cameron.bateman>
Component: CoreAssignee: Ian Trimble <ian.trimble>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: raghunathan.srinivasan
Version: 2.0Keywords: helpwanted
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 170080    
Bug Blocks:    

Description Cameron Bateman CLA 2007-01-25 19:52:42 EST
This problem is caused by the bug 170080 in HTML support for stylesheets.  I can implement a work-around, but a complete fix is blocked by that bug.
Comment 1 Cameron Bateman CLA 2007-01-26 12:59:57 EST
I have implemented a workaround for this bug that I should avoid the nasty side-effect of crashing the VPD.  The workaround is sorround the logic that calls getSheet with the following:

if (sheetAdapter.getElement() != null
    && "text/css".equals(sheetAdapter.getElement().getAttribute(HTML40Namespace.ATTR_NAME_TYPE)))

Under these conditions, I believe getSheet will always work without throwing an NPE.

Full fix is pending dependant bug.
Comment 2 John Lanuti CLA 2007-04-11 10:46:34 EDT
Updating target to RC0.
Comment 3 Raghunathan Srinivasan CLA 2007-04-13 17:27:49 EDT
Consider for 3.0
Comment 4 Raghunathan Srinivasan CLA 2008-04-14 19:03:36 EDT
Deferred due to lack of resources. Dependent bug 170080 still open.
Comment 5 Cameron Bateman CLA 2010-12-17 13:17:55 EST
The blocking bug has been fixed.  We need to verify and close this one.  This may involve backing out the workaround.
Comment 6 Ian Trimble CLA 2011-04-01 19:32:25 EDT
Fix submitted at 2011/04/01 04:32PM PDT.