You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "reta (via GitHub)" <gi...@apache.org> on 2024/06/10 00:31:36 UTC
Re: [PR] CXF-9007: NullPointerException in XMLStreamDataWriter.writeNode [cxf]
reta commented on code in PR #1861:
URL: https://github.com/apache/cxf/pull/1861#discussion_r1596097566
##########
core/src/main/java/org/apache/cxf/helpers/DOMUtils.java:
##########
@@ -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);
Review Comment:
~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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cxf.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org