You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mk...@apache.org on 2006/09/22 15:58:01 UTC

svn commit: r448935 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java

Author: mkienenb
Date: Fri Sep 22 06:58:00 2006
New Revision: 448935

URL: http://svn.apache.org/viewvc?view=rev&rev=448935
Log:
TOMAHAWK-685 - NPE during ClassCastException in CompareToValidator.
Thanks to Nuno Marques for spotting this one.

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java?view=diff&rev=448935&r1=448934&r2=448935
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java Fri Sep 22 06:58:00 2006
@@ -332,7 +332,7 @@
     protected String getClassCastExceptionMessage(String name, Class clazz, Object object)
     {
         if (null == object)
-            return name + " must be type " + clazz + " but is null" + object.getClass();
+            return name + " must be type " + clazz + " but is null";
         else return name + " must be type " + clazz + " but is type " + object.getClass();
     }