Skip to content

Fix null error in bound function#141

Merged
SBLMikeDemone merged 3 commits into
mainfrom
mike.demone/fix-null-error
Jun 24, 2026
Merged

Fix null error in bound function#141
SBLMikeDemone merged 3 commits into
mainfrom
mike.demone/fix-null-error

Conversation

@SBLMikeDemone

Copy link
Copy Markdown
Contributor

Issue
Running the generator with certain configurations caused null reference exceptions within the boundChanges Common Filter.

Cause
This PR caused the value undefined to be turned into null when being serialized in a changelog: 8de3a55

Fix
Serialize fields that are 'undefined' as undefined instead of null.

@rlandav rlandav left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any tests for the changelog generator that validate this?

@SBLMikeDemone

Copy link
Copy Markdown
Contributor Author

Any tests for the changelog generator that validate this?

I'm looking into this right now but, surprisingly, no. I think you need to have both the changelog generator run and a normal generation. I'm trying to recreate the situation that caused this within a test

@SBLMikeDemone
SBLMikeDemone merged commit 8dbaa03 into main Jun 24, 2026
3 checks passed
@SBLMikeDemone
SBLMikeDemone deleted the mike.demone/fix-null-error branch June 24, 2026 21:17
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.

4 participants