Skip to content

Commit 8c8f88f

Browse files
committed
If null support is set to true, that passage would give a "Can't cast Null value to Collection" error.
Checking if errorData is not null before parsing it actually fixes the issue.
1 parent 847e79e commit 8c8f88f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
* Major bump of all dependencies
1515

16+
### Fixed
17+
18+
* Fix process result metadata replacements https://github.com/coldbox-modules/cbvalidation/pull/64/files thanks to @alessio-de-padova
19+
1620
### Changed
1721

1822
* Dropped ACF2016

models/result/ValidationError.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ component accessors="true" {
3333
* Get the error metadata
3434
*/
3535
struct function getErrorMetadata(){
36-
return variables.errorMetadata;
36+
return variables.errorMetadata ?: {};
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)