Community
Participate
Working Groups
9. It is not a bug but we think it could be changed. NodeType:dom_to_xpath is a factory method to convert w3c .dom model to XPath model. It returns null when type is unknown. It should not happen in correct w3c implementation. However dom4j implementation has 13 number for own Namespace node. Our suggestion is to let this method return null for unknown types and add null check in each place it is used. There are 7 places but only 4 needed to be change: ChildAxis FollowingSiblingAxis ParentAxis PrecedingSiblingAxis
Created attachment 205817 [details] Patch
Patch looks good ... Reviewing and testing against HEAD and maintenance branches!
Regression tested and committed. Thanks, Lukasz!