Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2011-02-10 16:28:38 -0500
committerMatthias Sohn2011-02-10 16:28:38 -0500
commit94c4f38144334ba150d8a156e94a132478c78d15 (patch)
tree9bc7fee1265e440c1d0290d542b8a56c8ce5eae4
parent226a7f50cdbff206855633bf85ed318375e95df4 (diff)
downloadegit-94c4f38144334ba150d8a156e94a132478c78d15.tar.gz
egit-94c4f38144334ba150d8a156e94a132478c78d15.tar.xz
egit-94c4f38144334ba150d8a156e94a132478c78d15.zip
Do not use control if it has been disposed already
Bug: 334235 Change-Id: I09232918cddf7fb19d45f5c58620158c7701e013 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
index 46c103842..df3d9cd45 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
@@ -1041,6 +1041,8 @@ public class GitHistoryPage extends HistoryPage implements RefsChangedListener {
GitTraceLocation.HISTORYVIEW.getLocation(), message);
getHistoryPageSite().getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
+ if (topControl.isDisposed())
+ return;
StackLayout layout = (StackLayout) topControl.getLayout();
if (message != null) {
errorText.setText(message);

Back to the top