Community
Participate
Working Groups
Created attachment 170512 [details] Code to reproduce the error We have a problem with RAP 1.3M3 (also still reproducable with RAP1.3RC2). The problem described here doesn't exist in RAP 1.2.1 and currently prevents upgrading to the latest RAP version. We have an UI containing a DefaultButton. Later on this UI (including the Button) gets disposed and replaced by a new UI. TextLCAUtil then runs into a "Widget is disposed"-Exception for that Button. Attached you will find the Stacktrace along with a small sample where you should easily be able to reproduce the problem. The Exception only comes, when the new UI contains a TextField.
Created attachment 170513 [details] Stacktrace
Created attachment 170544 [details] Proposed Fix The problem is that Shell#getDefaultButton() returns a disposed Button instance. This is not the case in SWT. This patch changes this method to return null if the registered default button has been disposed.
Committed the patch to CVS HEAD.