summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
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 /src/com/vaadin
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
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/service/ApplicationContext.java1
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractWebApplicationContext.java38
2 files changed, 21 insertions, 18 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) {