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 null reference error when calling faces.ajax.request() #5500

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

tnagao7
Copy link
Member

@tnagao7 tnagao7 commented Sep 6, 2024

Fixes #5499.

The null reference has been occurring since if (node && node.parentNode) node.parentNode.removeChild(node); is replaced with if (node) node.remove(); in the commit f2f343a.
It can be fixed by adding a null check for node.parentNode as before.

Signed-off-by: Takahiro Nagao <nagao.takahiro@fujitsu.com>
@BalusC BalusC merged commit 2de348b into eclipse-ee4j:master Sep 6, 2024
2 checks passed
@BalusC
Copy link
Contributor

BalusC commented Sep 6, 2024

Thank you!

Can you also create a PR For 4.1 branch?

@tnagao7
Copy link
Member Author

tnagao7 commented Sep 6, 2024

Sure! PR For 4.1 branch is #5501

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.

faces.ajax.request() fails due to null reference if used with prototype.js
2 participants