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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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

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