]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix NPE if there's no query in the URI (#11836)
authorLeif Åstrand <leif@vaadin.com>
Tue, 14 May 2013 13:13:43 +0000 (16:13 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 14 May 2013 13:27:42 +0000 (13:27 +0000)
Change-Id: I8960e5917ffb0988e705599d1fe5e8aacf2654ef

uitest/src/com/vaadin/tests/components/AbstractTestUI.java

index 45809e3270c918b074a8015db5fa59556b13294a..ec6cf0c57dd970b18312e224381ea12e39e0f954 100644 (file)
@@ -40,7 +40,8 @@ public abstract class AbstractTestUI extends UI {
 
     protected void warnIfWidgetsetMaybeNotCompiled() {
         // Ignore if using debug mode
-        if (getPage().getLocation().getQuery().matches(".*[&?]gwt\\.codesvr.*")) {
+        String query = getPage().getLocation().getQuery();
+        if (query != null && query.matches(".*[&?]gwt\\.codesvr.*")) {
             return;
         }