[seam-commits] Seam SVN: r9028 - trunk/ui/src/main/java/org/jboss/seam/ui/converter.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Sep 19 07:21:19 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-09-19 07:21:18 -0400 (Fri, 19 Sep 2008)
New Revision: 9028

Modified:
   trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java
Log:
JBSEAM-3430

Modified: trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java	2008-09-19 11:20:31 UTC (rev 9027)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java	2008-09-19 11:21:18 UTC (rev 9028)
@@ -85,11 +85,14 @@
                FacesContext facesContext = FacesContext.getCurrentInstance();
                if (valueExpression != null)
                {
-                  Converter converter = facesContext.getApplication().createConverter(
-                           valueExpression.getType(facesContext.getELContext()));
-                  if (converter != null)
+                  Class<?> type = valueExpression.getType(facesContext.getELContext());
+                  if (type != null)
                   {
-                     addConverterToChain(converter);
+                     Converter converter = facesContext.getApplication().createConverter(type);
+                     if (converter != null)
+                     {
+                        addConverterToChain(converter);
+                     }
                   }
                }
             }




More information about the seam-commits mailing list