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

CXF-9007: NullPointerException in XMLStreamDataWriter.writeNode #1861

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

reta
Copy link
Member

@reta reta commented May 9, 2024

NullPointerException in XMLStreamDataWriter.writeNode

@@ -790,7 +790,10 @@ public static DocumentFragment getDomDocumentFragment(DocumentFragment fragment)
//java9 plus hack
Field f = GET_DOCUMENT_FRAGMENT_FIELDS.get(fragment.getClass());
if (f != null) {
return ReflectionUtil.accessDeclaredField(f, fragment, DocumentFragment.class);
final DocumentFragment inner = ReflectionUtil.accessDeclaredField(f, fragment, DocumentFragment.class);
Copy link
Member Author

@reta reta May 9, 2024

Choose a reason for hiding this comment

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

I am not able to reproduce the issue though but it seems like to be the only place where null could escape, thanks to hint from the reporter, replicated the test case that reproduced the problem sporadically

@reta reta merged commit 9d52241 into apache:main Jun 18, 2024
4 checks passed
reta added a commit that referenced this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant