[ http://issues.apache.org/jira/browse/TOMAHAWK-685?page=all ]
Mike Kienenberger resolved TOMAHAWK-685.
----------------------------------------
Resolution: Fixed
Fixed. Thanks for catching that!
> NPE during ClassCastException 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.4-SNAPSHOT, 1.1.5-SNAPSHOT
> Reporter: Nuno Marques
> Priority: Minor
> Fix For: 1.1.5-SNAPSHOT
>
>
> 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