Skip to content

Commit

Permalink
Fix: return early added to applyDefaults to protect against null valu…
Browse files Browse the repository at this point in the history
…es in AAT
  • Loading branch information
joe-allen-89 committed Dec 15, 2023
1 parent 33d1bf7 commit 970c846
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grunt/helpers/schema/Schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : {};
Expand Down

0 comments on commit 970c846

Please sign in to comment.