Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Baumgart2011-02-11 06:29:57 -0500
committerCode Review2011-02-11 06:29:57 -0500
commit0b419e7437a057a2c9662e29ae0d91a167a96fa2 (patch)
treee0b4de9ce800809d6b2c3f894ea7120e504c4309
parent84c76d3e264d35cc07b5dc3e6e75f1f9878bd663 (diff)
parent94c4f38144334ba150d8a156e94a132478c78d15 (diff)
downloadegit-0b419e7437a057a2c9662e29ae0d91a167a96fa2.tar.gz
egit-0b419e7437a057a2c9662e29ae0d91a167a96fa2.tar.xz
egit-0b419e7437a057a2c9662e29ae0d91a167a96fa2.zip
Merge "Do not use control if it has been disposed already" into stable-0.11
-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