[seam-commits] Seam SVN: r9437 - branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/converter.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Oct 27 10:31:31 EDT 2008


Author: manaRH
Date: 2008-10-27 10:31:31 -0400 (Mon, 27 Oct 2008)
New Revision: 9437

Modified:
   branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java
Log:
JBPAPP-1313

Modified: branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java	2008-10-27 14:26:15 UTC (rev 9436)
+++ branches/enterprise/JBPAPP_4_3_FP01/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java	2008-10-27 14:31:31 UTC (rev 9437)
@@ -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