Skip to content

Commit 109095b

Browse files
authored
Only perform type evaluation if target value is not null or empty string (#75)
1 parent 30cc9a5 commit 109095b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/validators/TypeValidator.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ component extends="BaseValidator" accessors="true" singleton {
4444
}
4545

4646
// return true if no data to check, type needs a data element to be checked.
47-
if ( isNull( arguments.targetValue ) ) {
47+
if ( isNull( arguments.targetValue ) || isNullOrEmpty( arguments.targetValue ) ) {
4848
return true;
4949
}
5050

0 commit comments

Comments
 (0)