From: Leif Åstrand Date: Tue, 14 May 2013 13:13:43 +0000 (+0300) Subject: Fix NPE if there's no query in the URI (#11836) X-Git-Tag: 7.0.6~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42545ac81ae49cb9a3af2a8b3b06ba9525886b22;p=vaadin-framework.git Fix NPE if there's no query in the URI (#11836) Change-Id: I8960e5917ffb0988e705599d1fe5e8aacf2654ef --- diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java index 45809e3270..ec6cf0c57d 100644 --- a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java +++ b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java @@ -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; }