Skip to content

Commit 3fd3d63

Browse files
authored
Getting an uncaught error when calling getIntegerFromAttribute with null values. (#1304)
1 parent 203522d commit 3fd3d63

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src-electron/validation/validation.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,12 @@ function isBigInteger(bits) {
239239

240240
async function getBoundsInteger(attribute, typeSize, isSigned) {
241241
return {
242-
min: await getIntegerFromAttribute(attribute.min, typeSize, isSigned),
243-
max: await getIntegerFromAttribute(attribute.max, typeSize, isSigned),
242+
min: attribute.min
243+
? await getIntegerFromAttribute(attribute.min, typeSize, isSigned)
244+
: null,
245+
max: attribute.max
246+
? await getIntegerFromAttribute(attribute.max, typeSize, isSigned)
247+
: null,
244248
}
245249
}
246250

0 commit comments

Comments
 (0)