Skip to content

Conversation

@yonaka15
Copy link
Owner

This PR fixes a server crash that occurs when a null value is passed to the escapeXml function.

This was happening when calling list_issues with a parent_id that resulted in a custom field with a null value being processed.

The escapeXml function in src/formatters/issues.ts and src/formatters/users.ts has been updated to check if the input is a string before attempting to call replace on it. If the input is not a string, an error is logged and an empty string is returned.

Closes #12

@yonaka15 yonaka15 merged commit 8f308f0 into main Jun 9, 2025
0 of 2 checks passed
@yonaka15 yonaka15 deleted the fix/issue-12-escapexml-null branch June 9, 2025 22:40
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.

Crash if providing parent issue

2 participants