We are still using an Oracle XML parser for legacy reasons and the Configuration.java will result in NullPointerExceptions in "childNode.getTextContent().trim()" due to getTextContent() being NULL.
Since replacing our Oracle XML parser is not possible right now, I had to replace Java code from
childNode.getTextContent().trim() to getTrimmedContent(childNode) (which is a private function doing the NULL check).
While our issue might be isolated, it would be great to cater for this in code from a compatibility perspective.
Since replacing our Oracle XML parser is not possible right now, I had to replace Java code from
childNode.getTextContent().trim() to getTrimmedContent(childNode) (which is a private function doing the NULL check).
While our issue might be isolated, it would be great to cater for this in code from a compatibility perspective.
Re: [JAVA] NullPointer with some XML parsers