[seam-commits] Seam SVN: r8808 - trunk/src/main/org/jboss/seam/faces.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Aug 26 08:18:33 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-08-26 08:18:33 -0400 (Tue, 26 Aug 2008)
New Revision: 8808

Modified:
   trunk/src/main/org/jboss/seam/faces/FacesMessages.java
Log:
JBSEAM-3318

Modified: trunk/src/main/org/jboss/seam/faces/FacesMessages.java
===================================================================
--- trunk/src/main/org/jboss/seam/faces/FacesMessages.java	2008-08-26 12:15:58 UTC (rev 8807)
+++ trunk/src/main/org/jboss/seam/faces/FacesMessages.java	2008-08-26 12:18:33 UTC (rev 8808)
@@ -22,8 +22,6 @@
 import org.jboss.seam.international.StatusMessages;
 import org.jboss.seam.util.Strings;
 
-import com.sun.mail.handlers.message_rfc822;
-
 /**
  * A Seam component that propagates FacesMessages across redirects
  * and interpolates EL expressions in the message string.
@@ -45,7 +43,11 @@
    {
       for (StatusMessage statusMessage: getMessages())
       {
-         FacesContext.getCurrentInstance().addMessage( null, toFacesMessage(statusMessage) );
+         FacesMessage message = toFacesMessage(statusMessage);
+         if (message != null)
+         {
+            FacesContext.getCurrentInstance().addMessage( null, message );
+         }
       }
       for ( Map.Entry<String, List<StatusMessage>> entry: getKeyedMessages().entrySet() )
       {




More information about the seam-commits mailing list