]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid NPEs in integration test 43/43/1
authorArtur Signell <artur@vaadin.com>
Tue, 2 Oct 2012 15:03:22 +0000 (18:03 +0300)
committerArtur Signell <artur@vaadin.com>
Tue, 2 Oct 2012 15:03:36 +0000 (18:03 +0300)
Change-Id: Idc20efce93e2ee6f7e9cba2eb3676e6e6ec41771

uitest/src/com/vaadin/tests/integration/IntegrationTestApplication.java
uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java

index 41b7b020f513ab9402c82208bf5fa38a0877c73a..916af7129e30a3c74793866a99c9e73e693b1e2b 100644 (file)
@@ -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);
index 05683e7b4e2bc520516d18937d7d3b99279c0f81..61214ede8cbe4d8bdf696766b5dd13fc650281aa 100755 (executable)
@@ -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);