método isEligible CPFValidator cospe NPE em valores nulos
geraldodev opened this issue · comments
geraldodev commented
user=> (def v (br.com.caelum.stella.validation.CPFValidator.))
#'user/v
user=> (.isEligible v nil)
NullPointerException java.util.regex.Matcher.getTextLength (Matcher.java:1234)
Como a assinatura deste método retorna true ou falso seria interessante retornar falso em tipos diferentes de String ou iguais a nulo evitando assim a NullPointerException.