Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Sternberg2012-09-17 09:36:10 +0000
committerRalf Sternberg2012-09-17 09:37:18 +0000
commit00c77bd7c2c1c3be175a8d3c4dec538d5955a8c3 (patch)
tree64acf34425c9f914aee25619d05bc3221277b87f /bundles
parent642847b8d08981df77d3a7e82a4b1e503a3067e3 (diff)
downloadorg.eclipse.rap-00c77bd7c2c1c3be175a8d3c4dec538d5955a8c3.tar.gz
org.eclipse.rap-00c77bd7c2c1c3be175a8d3c4dec538d5955a8c3.tar.xz
org.eclipse.rap-00c77bd7c2c1c3be175a8d3c4dec538d5955a8c3.zip
Check device when running dispose execs
When Display#dispose is called during disposal (which is illegal), we run into an exception in the Synchronizer. We should rather fail fast and throw an SWT exception here. See bug 389384: Calling Display#dispose() during disposal of the display should throw SWT exception https://bugs.eclipse.org/bugs/show_bug.cgi?id=389384
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Display.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Display.java
index ad6cbbb4dd..26aa76130a 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Display.java
@@ -730,6 +730,7 @@ public class Display extends Device implements Adaptable {
}
private void runDisposeExecs() {
+ checkDevice();
if( disposeList != null ) {
for( int i = 0; i < disposeList.length; i++ ) {
if( disposeList[ i ] != null ) {

Back to the top