MappedString.crop should look for null
Code should be this:
final def crop(in: String): String = in match {
case null => null
case s => s.substring(0, Math.min(s.length, maxLen))
}
final def crop(in: String): String = in match {
case null => null
case s => s.substring(0, Math.min(s.length, maxLen))
}
Leave a comment
on 2010-03-18 18:01 *
By hoffrocket
Assigned to set to hoffrocket
Status changed from New to Accepted
i've got this
on 2010-03-24 16:16 *
By hoffrocket
Status changed from Accepted to Fixed
Work remaining changed from 0.1 to 0.0