Fix typo in condition statement
authorBruno Sinou <bsinou@argeo.org>
Wed, 20 May 2015 17:04:05 +0000 (17:04 +0000)
committerBruno Sinou <bsinou@argeo.org>
Wed, 20 May 2015 17:04:05 +0000 (17:04 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8122 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java

index 52eaf9b8412fb97e47924df53646fffff6286847..e2d5f2e81bdc1bf6310d5ba55c2acb685ec9e3ad 100644 (file)
@@ -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;
        }