myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r984696 - /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/EditableValueRenderer.java
Date Thu, 12 Aug 2010 09:13:05 GMT
Author: matzew
Date: Thu Aug 12 09:13:05 2010
New Revision: 984696

URL: http://svn.apache.org/viewvc?rev=984696&view=rev
Log:
npe prevention, due to new empty_values parameters

Modified:
    myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/EditableValueRenderer.java

Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/EditableValueRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/EditableValueRenderer.java?rev=984696&r1=984695&r2=984696&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/EditableValueRenderer.java
(original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/EditableValueRenderer.java
Thu Aug 12 09:13:05 2010
@@ -130,7 +130,7 @@ abstract public class EditableValueRende
     {
       return converter.getAsObject(context,
                                    component,
-                                   submittedValue.toString());
+                                   (submittedValue != null) ? submittedValue.toString() :
null);
     }
 
     return submittedValue;



Mime
View raw message