summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-05-14 16:13:43 +0300
committerVaadin Code Review <review@vaadin.com>2013-05-14 13:27:42 +0000
commit42545ac81ae49cb9a3af2a8b3b06ba9525886b22 (patch)
tree8d95cb58f4ce00dacb83e3af11467ac7e7a393e9 /uitest
parentb8c6a15da87ff6d2a83e7c0d79dd45ee120fe6a2 (diff)
downloadvaadin-framework-42545ac81ae49cb9a3af2a8b3b06ba9525886b22.tar.gz
vaadin-framework-42545ac81ae49cb9a3af2a8b3b06ba9525886b22.zip
Fix NPE if there's no query in the URI (#11836)
Change-Id: I8960e5917ffb0988e705599d1fe5e8aacf2654ef
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestUI.java3
1 files changed, 2 insertions, 1 deletions
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;
}