Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorMartin Schreiber2016-02-17 04:21:31 -0500
committerGerrit Code Review @ Eclipse.org2016-02-17 10:27:12 -0500
commitc6bc452a1b3509ae6eb000a1e36f359a2f5b43f3 (patch)
treeeafe08e3f4a774e91e1cd6e4ffc06b7a3a805de9 /dsf
parenta3eb9edc5985c1f27edc91ba4283a9a613298b3e (diff)
downloadorg.eclipse.cdt-c6bc452a1b3509ae6eb000a1e36f359a2f5b43f3.tar.gz
org.eclipse.cdt-c6bc452a1b3509ae6eb000a1e36f359a2f5b43f3.tar.xz
org.eclipse.cdt-c6bc452a1b3509ae6eb000a1e36f359a2f5b43f3.zip
Bug 487920 Check if widget is disposed before enable it
Before calling setEnabled on the ToolItem check if it is disposed. If thats the case, do nothing, else enable the ToolItem. Bug: 487920 Change-Id: I1f7b9e0da7f07b2b49e3176e162b9ffb7968439b Signed-off-by: Martin Schreiber <m.schreiber@bachmann.info>
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/actions/AddressBarContributionItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/actions/AddressBarContributionItem.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/actions/AddressBarContributionItem.java
index 597ee11edf..0020fd8c6c 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/actions/AddressBarContributionItem.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/actions/AddressBarContributionItem.java
@@ -160,7 +160,7 @@ public class AddressBarContributionItem extends ContributionItem {
* true to enable, else false.
*/
public void enableAddressBox(boolean enable) {
- if (addressBox != null) {
+ if (addressBox != null && !item.isDisposed()) {
item.setEnabled(enable);
addressBox.setEnabled(enable);
}

Back to the top