Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-14 10:04:40 -0400
committerUwe Stieber2013-10-14 10:04:40 -0400
commitc004140cb9055bf5893e0d420a7f640c14595b64 (patch)
treef1609cd193b34b9b31f67e1d59f0e5159e1ca94f /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf
parentd5755657903e822a62625efe86a038f1d9313dbf (diff)
downloadorg.eclipse.tcf-c004140cb9055bf5893e0d420a7f640c14595b64.tar.gz
org.eclipse.tcf-c004140cb9055bf5893e0d420a7f640c14595b64.tar.xz
org.eclipse.tcf-c004140cb9055bf5893e0d420a7f640c14595b64.zip
Target Explorer: Fix FindBugs warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/AbstractContextSelectorSection.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/AbstractContextSelectorSection.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/AbstractContextSelectorSection.java
index 1d0c9ee31..a9ccb36a6 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/AbstractContextSelectorSection.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/AbstractContextSelectorSection.java
@@ -189,9 +189,11 @@ public abstract class AbstractContextSelectorSection extends org.eclipse.tcf.te.
String encoded = data.getStringProperty(getContextListDataKey());
IModelNode[] list = decode(encoded);
- selector.setCheckedModelContexts(list);
- if (selector != null && selector.getViewer() != null) {
- selector.getViewer().refresh();
+ if (selector != null) {
+ selector.setCheckedModelContexts(list);
+ if (selector.getViewer() != null) {
+ selector.getViewer().refresh();
+ }
}
// Mark the control update as completed now

Back to the top