aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ");