From 970c84623a41b3e8800246ec2ddd171f8182b9cf Mon Sep 17 00:00:00 2001 From: joe-allen-89 <85872286+joe-allen-89@users.noreply.github.com> Date: Fri, 15 Dec 2023 10:10:05 +0000 Subject: [PATCH] Fix: return early added to applyDefaults to protect against null values in AAT --- grunt/helpers/schema/Schema.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grunt/helpers/schema/Schema.js b/grunt/helpers/schema/Schema.js index 737ffb7da..9bdeaab15 100644 --- a/grunt/helpers/schema/Schema.js +++ b/grunt/helpers/schema/Schema.js @@ -126,6 +126,9 @@ class Schema { let hasChanged = false; let haveChildenChanged = false; let defaultValue; + + if (description === null || output === null) return; + switch (description.type) { case 'object': defaultValue = description.hasOwnProperty('default') && options.fillObjects ? description.default : {};