]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add null check to test portlet
authorHenri Sara <hesara@vaadin.com>
Tue, 1 Sep 2015 09:51:01 +0000 (12:51 +0300)
committerHenri Sara <hesara@vaadin.com>
Wed, 2 Sep 2015 07:49:59 +0000 (10:49 +0300)
Change-Id: I0e89ff093b4a880b03a75aaf605ba55efbd27874

uitest/src/com/vaadin/tests/integration/JSR286Portlet.java

index 3fbf5b57efa8e430c5dd2719817772566300474b..800a056041b9a7b6b94e2926340cf17fe16027f8 100644 (file)
@@ -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 ");