Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-09-24 08:15:11 -0400
committerTobias Schwarz2013-09-24 08:15:11 -0400
commit84e515dbdf368213fc416aa5c633fd0dbaa84f78 (patch)
treedbaa49658978b8c2342fe3c438c9063d3f7521d3 /target_explorer/plugins/org.eclipse.tcf.te.ui.swt
parenta39e40e55fc0e9dbc14f717ae0fc91bfc44ec3cb (diff)
downloadorg.eclipse.tcf-84e515dbdf368213fc416aa5c633fd0dbaa84f78.tar.gz
org.eclipse.tcf-84e515dbdf368213fc416aa5c633fd0dbaa84f78.tar.xz
org.eclipse.tcf-84e515dbdf368213fc416aa5c633fd0dbaa84f78.zip
Target Explorer: fix set text null
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.swt')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java
index 8378d5475..bd7efefa3 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/swt/SWTControlUtil.java
@@ -84,8 +84,8 @@ public final class SWTControlUtil {
* @param value The text to apply to the given control.
*/
public static final void setText(Control control, String value) {
- if (control != null && !control.isDisposed() && value != null) {
- String trimmedValue = value.trim();
+ if (control != null && !control.isDisposed()) {
+ String trimmedValue = value != null ? value.trim() : ""; //$NON-NLS-1$
// Avoid triggering attached listeners if the value has not changed.
String oldValue = getText(control);

Back to the top