From: Bruno Sinou Date: Wed, 20 May 2015 17:04:05 +0000 (+0000) Subject: Fix typo in condition statement X-Git-Tag: argeo-commons-2.1.30~238 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=12704a4d8b8bce6eca77e52f435702a252b2614c;p=lgpl%2Fargeo-commons.git Fix typo in condition statement git-svn-id: https://svn.argeo.org/commons/trunk@8122 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java index 52eaf9b84..e2d5f2e81 100644 --- a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java @@ -146,7 +146,7 @@ public class EclipseUiUtils { lbl.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false)); Text txt = new Text(parent, SWT.LEAD | SWT.BORDER | SWT.PASSWORD); txt.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); - if (txt != null) + if (modifyListener != null) txt.addModifyListener(modifyListener); return txt; }