aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-08-03 10:14:14 (EDT)
committerOleg Besedin2011-08-03 10:17:52 (EDT)
commit771cd0ceeed15479652ebbb79a4b731f29175cdd (patch)
treeb3cb73bb3e226300ed840795344df122c51aa285
parentf6c71b74cbc4f2540af07ef594419c2e89fd04f9 (diff)
downloadeclipse.platform.ui-771cd0ceeed15479652ebbb79a4b731f29175cdd.zip
eclipse.platform.ui-771cd0ceeed15479652ebbb79a4b731f29175cdd.tar.gz
eclipse.platform.ui-771cd0ceeed15479652ebbb79a4b731f29175cdd.tar.bz2
Bug 353366 - Tests failures for empty label width (testSaveAs,v20110803-1417
testExportResources, etc.)
-rw-r--r--tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java b/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java
index 3ce5d7c..7ba1341 100644
--- a/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java
+++ b/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/DialogCheck.java
@@ -173,7 +173,7 @@ public class DialogCheck {
String widget = label.toString();
Point size = label.getSize();
String labelText = label.getText();
- if (labelText.isEmpty())
+ if (labelText == null || labelText.length() == 0)
return;
//compute the size with no line wrapping
Point preferred = label.computeSize(SWT.DEFAULT, SWT.DEFAULT);