From 28e9f0366597f55d8b28a2d3bc5e666cefeb6a19 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Oct 2025 21:29:28 +0000 Subject: [PATCH 1/2] Initial plan From 16b6708c83a7814cbc0f709cd4ed2d7a93c83b30 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Oct 2025 21:34:06 +0000 Subject: [PATCH 2/2] Fix null argument handling in _uploadErrored function Co-authored-by: grantcopley <1197835+grantcopley@users.noreply.github.com> --- models/Component.cfc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/models/Component.cfc b/models/Component.cfc index 294bcd7..215bb2f 100644 --- a/models/Component.cfc +++ b/models/Component.cfc @@ -1005,11 +1005,17 @@ component output="true" accessors="true" { ); // Check if the component has an onUploadError method and invoke it if ( structKeyExists( this, "onUploadError" ) ) { - invoke( this, "onUploadError", { + local.invokeParams = { property: arguments.prop, - errors: arguments.errors, multiple: arguments.multiple - } ); + }; + // Include errors parameter - check if it exists in arguments scope to handle null values passed via invoke + if ( structKeyExists( arguments, "errors" ) ) { + local.invokeParams.errors = arguments.errors; + } else { + local.invokeParams.errors = javaCast( "null", "" ); + } + invoke( this, "onUploadError", local.invokeParams ); } }