Skip to content

Commit cfdd71f

Browse files
committed
check for same thead in findDisplay()
1 parent 97e3877 commit cfdd71f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets

bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Display.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ private void detachThread() {
939939
*/
940940
public static Display findDisplay( Thread thread ) {
941941
Display display = getDisplay( thread );
942-
if (display == null || display.thread == null || display.isDisposed()) {
942+
if (display == null || display.thread != thread || display.isDisposed()) {
943943
return null;
944944
}
945945
return display;

0 commit comments

Comments
 (0)