Fix CollationKey creation - fixes #753

This commit is contained in:
Tom Morris 2013-07-10 15:12:49 -04:00
parent 163546de94
commit 32773122c4

View File

@ -71,8 +71,8 @@ public class StringCriterion extends Criterion {
return new KeyMaker() {
@Override
protected Object makeKey(Object value) {
return (ExpressionUtils.isNonBlankData(value) && !(value instanceof String)) ?
collator.getCollationKey(value.toString()) : value;
return collator.getCollationKey((ExpressionUtils.isNonBlankData(value)
&& !(value instanceof String)) ? value.toString() : (String) value);
}
@Override