aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-09-01 12:51:01 +0300
committerHenri Sara <hesara@vaadin.com>2015-09-01 12:51:01 +0300
commit86a22c9a733e63cb6fc60e87bc6789b70c67b9d4 (patch)
treed38a2d7cfe856c0d8946527e1c1b969730e44299 /uitest/src/com/vaadin/tests
parent6a7b603d2d9ee95f37bce3e5237e66c265f772a5 (diff)
downloadvaadin-framework-86a22c9a733e63cb6fc60e87bc6789b70c67b9d4.tar.gz
vaadin-framework-86a22c9a733e63cb6fc60e87bc6789b70c67b9d4.zip
Add null check to test portlet
Change-Id: I226af05a718931cabb7e27d6bcc38f5832d89ee7
Diffstat (limited to 'uitest/src/com/vaadin/tests')
-rw-r--r--uitest/src/com/vaadin/tests/integration/JSR286Portlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java b/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java
index 3fbf5b57ef..800a056041 100644
--- a/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java
+++ b/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java
@@ -114,7 +114,7 @@ public class JSR286Portlet extends UI {
String censoredUserAgent = getPage().getWebBrowser()
.getBrowserApplication();
- if (censoredUserAgent.contains("Chrome/")) {
+ if (censoredUserAgent != null && censoredUserAgent.contains("Chrome/")) {
// Censor version info as it tends to change
censoredUserAgent = censoredUserAgent.replaceAll("Chrome/[^ ]* ",
"Chrome/xyz ");