Skip to content

Commit

Permalink
Getting an uncaught error when calling getIntegerFromAttribute with n…
Browse files Browse the repository at this point in the history
…ull values. (project-chip#1304)
  • Loading branch information
brdandu authored Apr 11, 2024
1 parent 203522d commit 3fd3d63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src-electron/validation/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,12 @@ function isBigInteger(bits) {

async function getBoundsInteger(attribute, typeSize, isSigned) {
return {
min: await getIntegerFromAttribute(attribute.min, typeSize, isSigned),
max: await getIntegerFromAttribute(attribute.max, typeSize, isSigned),
min: attribute.min
? await getIntegerFromAttribute(attribute.min, typeSize, isSigned)
: null,
max: attribute.max
? await getIntegerFromAttribute(attribute.max, typeSize, isSigned)
: null,
}
}

Expand Down

0 comments on commit 3fd3d63

Please sign in to comment.