diff options
author | Artur Signell <artur@vaadin.com> | 2012-10-02 18:03:22 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-10-02 18:03:36 +0300 |
commit | 22397fed1c2c7461aceb191291fe89ffd403fe26 (patch) | |
tree | 0362c9f855114213c62c3bf7ba4dc539d1f1c219 | |
parent | 88dbeb172c52bb5963616b67729618d55a8eb6b6 (diff) | |
download | vaadin-framework-22397fed1c2c7461aceb191291fe89ffd403fe26.tar.gz vaadin-framework-22397fed1c2c7461aceb191291fe89ffd403fe26.zip |
Avoid NPEs in integration test
Change-Id: Idc20efce93e2ee6f7e9cba2eb3676e6e6ec41771
-rw-r--r-- | uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java | 2 | ||||
-rwxr-xr-x | uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java b/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java index 41b7b020f5..916af7129e 100644 --- a/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java +++ b/uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java @@ -38,7 +38,7 @@ public class IntegrationTestApplication extends LegacyApplication { table.addListener(new ValueChangeListener() { @Override public void valueChange(ValueChangeEvent event) { - selectedLabel.setValue(table.getValue().toString()); + selectedLabel.setValue(String.valueOf(table.getValue())); } }); window.addComponent(selectedLabel); diff --git a/uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java b/uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java index 05683e7b4e..61214ede8c 100755 --- a/uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java +++ b/uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java @@ -34,7 +34,7 @@ public class IntegrationTestUI extends UI { table.addValueChangeListener(new ValueChangeListener() { @Override public void valueChange(ValueChangeEvent event) { - selectedLabel.setValue(table.getValue().toString()); + selectedLabel.setValue(String.valueOf(table.getValue())); } }); addComponent(selectedLabel); |