Bug 195735

Summary: Widget disposal causes NullPointerException
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Benjamin Muskalla <b.muskalla>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Stack trace
none
example snippet none

Description Rüdiger Herrmann CLA 2007-07-07 06:00:04 EDT
CVS HEAD

Steps to reproduce:
1. launch workbench demo with -console program argument
2. click on the windows' close button or choose File -> Exit from the menu
=> see the NullPointerException in the console output
Comment 1 Rüdiger Herrmann CLA 2007-07-07 06:01:13 EDT
Created attachment 73242 [details]
Stack trace
Comment 2 Benjamin Muskalla CLA 2007-07-11 12:25:04 EDT
This problem occurs also in other dispose situations. It seems that "something" can cause the widget field in the lca is null but the currentWidgetRef has a value -> ensureWidgetRef() tries to set the new widget ref and fails to due to the null of the widget field. Checking widget against null in JSWriter:506 (maybe outdated) solves this problem for me. But I'm not sure if it's the cause for other problems (have much trouble at the moment on other sides - not yet sure if it's related). 

I think to should be definitely fixed before the M5 milestone. Will try to provide a snippet to reproduce this situation. Changes priority to P1
Comment 3 Benjamin Muskalla CLA 2007-07-11 19:00:16 EDT
Created attachment 73612 [details]
example snippet

The problem is the order in which the widgets are disposed.
Comment 4 Benjamin Muskalla CLA 2007-07-12 06:09:48 EDT
Fixed in CVS.