From 42545ac81ae49cb9a3af2a8b3b06ba9525886b22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Tue, 14 May 2013 16:13:43 +0300 Subject: [PATCH] Fix NPE if there's no query in the URI (#11836) Change-Id: I8960e5917ffb0988e705599d1fe5e8aacf2654ef --- uitest/src/com/vaadin/tests/components/AbstractTestUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5