Skip to content

Commit aaa7133

Browse files
committed
Fixed Widget disposed exception if building debug info takes a long time
1 parent 8a8911a commit aaa7133

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/dialogs/AboutDialog.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ private void makeInstallationDetailsTab(CTabFolder folder)
199199
protected IStatus run(IProgressMonitor monitor)
200200
{
201201
String infoText = buildInfoText();
202-
Display.getDefault().asyncExec(() -> installationDetails.setText(infoText));
202+
Display.getDefault().asyncExec(() -> {
203+
if (!installationDetails.isDisposed())
204+
installationDetails.setText(infoText);
205+
});
203206
return Status.OK_STATUS;
204207
}
205208
}.schedule();

0 commit comments

Comments
 (0)