summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2015-09-01 12:51:01 +0300
committerHenri Sara <hesara@vaadin.com>2015-09-02 10:49:59 +0300
commit8339b3bb204eac5bf93234030fcdec10dd40a3c8 (patch)
treedc27a8dc9e7b2d19d3dc00e6ac2c682fd4e0704d /uitest
parent3e40e02f094889028df243e327c7219bfd55e5f9 (diff)
downloadvaadin-framework-8339b3bb204eac5bf93234030fcdec10dd40a3c8.tar.gz
vaadin-framework-8339b3bb204eac5bf93234030fcdec10dd40a3c8.zip
Add null check to test portlet
Change-Id: I0e89ff093b4a880b03a75aaf605ba55efbd27874
Diffstat (limited to 'uitest')
-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 ");