Skip to content

fix: FIR-51861 null pointer when hydrating null struct#161

Merged
bogdantruta-firebolt merged 1 commit into
mainfrom
FIR-51861-node-sdk-issue-with-struct-with-null-values
Jan 14, 2026
Merged

fix: FIR-51861 null pointer when hydrating null struct#161
bogdantruta-firebolt merged 1 commit into
mainfrom
FIR-51861-node-sdk-issue-with-struct-with-null-values

Conversation

@bogdantruta-firebolt
Copy link
Copy Markdown
Contributor

When processing a result set containing structs, we checked the keys inside the struct value against the ones from the meta, but we never checked if the actual value was null, so if (Object.keys(innerTypes).length !== Object.keys(value).length) { return value; } was throwing an exception when doing Object.keys(value).length. We fix this by either doing value ?? {} or the null check beforehand which I opted for

@bogdantruta-firebolt bogdantruta-firebolt requested a review from a team as a code owner January 14, 2026 11:22
@sonarqubecloud
Copy link
Copy Markdown

@bogdantruta-firebolt bogdantruta-firebolt merged commit 87c81e6 into main Jan 14, 2026
4 checks passed
@bogdantruta-firebolt bogdantruta-firebolt deleted the FIR-51861-node-sdk-issue-with-struct-with-null-values branch January 14, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants