]> source.dussan.org Git - vaadin-framework.git/commitdiff
np check for browser and browsers string (needed for portlet integration)
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 23 May 2008 11:31:18 +0000 (11:31 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 23 May 2008 11:31:18 +0000 (11:31 +0000)
svn changeset:4624/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

index 6edf362d0a1c33401820326f61e16fa710d4a529..27972119ba028e369f233d416c1604090af1067f 100644 (file)
@@ -925,9 +925,11 @@ public class ApplicationServlet extends HttpServlet {
     private boolean isGecko17(HttpServletRequest request) {
         final WebBrowser browser = WebApplicationContext.getApplicationContext(
                 request.getSession()).getBrowser();
-        if (browser.getBrowserApplication().indexOf("rv:1.7.") > 0
-                && browser.getBrowserApplication().indexOf("Gecko") > 0) {
-            return true;
+        if (browser != null && browser.getBrowserApplication() != null) {
+            if (browser.getBrowserApplication().indexOf("rv:1.7.") > 0
+                    && browser.getBrowserApplication().indexOf("Gecko") > 0) {
+                return true;
+            }
         }
         return false;
     }