Menu

#1 Widget.getDisplay

open
SWT (4)
5
2009-04-03
2009-04-03
No

Widget.getDisplay should check before doing something if the widget is disposed.

org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3864)
at org.eclipse.swt.SWT.error(SWT.java:3779)
at org.eclipse.swt.SWT.error(SWT.java:3750)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:578)
at abbot.swt.finder.WidgetFinderImpl$WidgetHierarchyAll.getChildren(WidgetFinderImpl.java:147)
at abbot.swt.finder.WidgetFinderImpl$WidgetHierarchyAll.getChildren(WidgetFinderImpl.java:1)
at abbot.swt.hierarchy.VisitableImpl.acceptNode(VisitableImpl.java:45)
at abbot.swt.hierarchy.VisitableImpl.acceptNodes(VisitableImpl.java:67)
at abbot.swt.hierarchy.HierarchyImpl.accept(HierarchyImpl.java:46)
at abbot.swt.finder.FinderImpl.find(FinderImpl.java:38)
at abbot.swt.finder.WidgetFinderImpl.findWidget(WidgetFinderImpl.java:136)
at abbot.swt.tester.ShellTester$2.test(ShellTester.java:115)
at abbot.swt.utilities.Wait.waitPrim(Wait.java:200)
at abbot.swt.utilities.Wait.wait(Wait.java:148)
at abbot.swt.tester.ShellTester.waitVisible(ShellTester.java:129)
at abbot.swt.tester.ShellTester.waitVisible(ShellTester.java:58)

Discussion

  • Gary Johnston

    Gary Johnston - 2009-04-03

    Looks like a good catch.

     
  • Gary Johnston

    Gary Johnston - 2009-04-03
    • assigned_to: nobody --> gjohnsto
     

Log in to post a comment.