A sure NPE in CompareToValidator
--------------------------------

                 Key: TOMAHAWK-685
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-685
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Validators
    Affects Versions: 1.1.5-SNAPSHOT
            Reporter: Nuno Marques
            Priority: Trivial


332:    protected String getClassCastExceptionMessage(String name, Class clazz, 
Object object)
333:    {
334:        if (null == object)
335:            return name + " must be type " + clazz + " but is null" + 
object.getClass();
336:        else return name + " must be type " + clazz + " but is type " + 
object.getClass();
337:    }

if you look with attention to line 335 it's surelly a bad copy/paste from line 
336 and object.getClass() will throw NPE.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to