summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2010-06-03 06:59:54 +0000
committerHenri Sara <henri.sara@itmill.com>2010-06-03 06:59:54 +0000
commit836491940e063f4fa6f88cb84e8b1ccf93e4ac1e (patch)
treec7aab148fe7578d7ec7ce9acc58200f225f12e93
parent5440919469e6955d5fc779be2f8edd44a9bb2644 (diff)
parent9030085c8f82a9216662f42c3e3ddf90b9f48bc6 (diff)
downloadvaadin-framework-836491940e063f4fa6f88cb84e8b1ccf93e4ac1e.tar.gz
vaadin-framework-836491940e063f4fa6f88cb84e8b1ccf93e4ac1e.zip
Merge from 6.3 to 6.4
svn changeset:13516/svn branch:6.4
-rw-r--r--src/com/vaadin/service/ApplicationContext.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java38
-rw-r--r--tests/test.xml2
3 files changed, 22 insertions, 19 deletions
diff --git a/src/com/vaadin/service/ApplicationContext.java b/src/com/vaadin/service/ApplicationContext.java
index 244e3d1bdf..76685cc215 100644
--- a/src/com/vaadin/service/ApplicationContext.java
+++ b/src/com/vaadin/service/ApplicationContext.java
@@ -54,6 +54,7 @@ public interface ApplicationContext extends Serializable {
* called before and after each each request related to this session except
* when serving static resources.
*
+ * The transaction listener must not be null.
*
* @see com.vaadin.service.ApplicationContext#addTransactionListener(com.vaadin.service.ApplicationContext.TransactionListener)
*/
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java b/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java
index bcac87e6ad..92488ef9ca 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java
@@ -3,22 +3,22 @@
*/
package com.vaadin.terminal.gwt.server;
-import java.io.PrintWriter;
-import java.io.Serializable;
-import java.io.StringWriter;
-import java.net.URL;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.LinkedList;
-
-import javax.servlet.http.HttpSessionBindingEvent;
-import javax.servlet.http.HttpSessionBindingListener;
-
-import com.vaadin.Application;
-import com.vaadin.service.ApplicationContext;
-import com.vaadin.terminal.ApplicationResource;
+import java.io.PrintWriter;
+import java.io.Serializable;
+import java.io.StringWriter;
+import java.net.URL;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.LinkedList;
+
+import javax.servlet.http.HttpSessionBindingEvent;
+import javax.servlet.http.HttpSessionBindingListener;
+
+import com.vaadin.Application;
+import com.vaadin.service.ApplicationContext;
+import com.vaadin.terminal.ApplicationResource;
/**
* Base class for web application contexts (including portlet contexts) that
@@ -36,8 +36,10 @@ public abstract class AbstractWebApplicationContext implements
protected HashMap<Application, AbstractCommunicationManager> applicationToAjaxAppMgrMap = new HashMap<Application, AbstractCommunicationManager>();
- public void addTransactionListener(TransactionListener listener) {
- listeners.add(listener);
+ public void addTransactionListener(TransactionListener listener) {
+ if (listener != null) {
+ listeners.add(listener);
+ }
}
public void removeTransactionListener(TransactionListener listener) {
diff --git a/tests/test.xml b/tests/test.xml
index c5f9fb4369..24db864588 100644
--- a/tests/test.xml
+++ b/tests/test.xml
@@ -5,7 +5,7 @@
<!-- Configuration -->
<!-- ================================================================== -->
<!-- Browsers to use for testing -->
- <property name="browsers" value="winxp-ie6,winxp-ie7,winxp-ie8,winxp-firefox36,winxp-safari4,winxp-googlechrome41,winxp-opera1050" />
+ <property name="browsers" value="winxp-ie6,winxp-ie7,winxp-ie8,winxp-firefox36,winxp-safari4,winxp-googlechrome5,winxp-opera1050" />
<!-- Screen shot base directory -->
<fail unless="com.vaadin.testbench.screenshot.directory" message="The 'com.vaadin.testbench.screenshot.directory' property must be defined." />