Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix destructing logout response before error checking in parseLogoutResponse #746

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

keptt
Copy link
Contributor

@keptt keptt commented Dec 18, 2024

Fixes #744

When the first argument indicating an error is passed to the callback of xml2js.parseString invoked from parseLogoutResponse, the second argument is undefined. However, second argument was being destructed before checking the first one, leading to an undefined dereferencing exception that ultimately overshadowed the original error.
Relevant issue: boxyhq#744
@deepakprabhakara
Copy link
Member

Thank you @keptt

@deepakprabhakara deepakprabhakara merged commit abccb4b into boxyhq:main Dec 18, 2024
2 checks passed
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.

parseLogoutResponse destructs a possibly undefined value while extracting LogoutResponse
2 participants