/src/main/java/org/htmlunit/html/xpath/XPathAdapter.java
msg = XPATHMessages.createXPATHMessage( XPATHErrorResources.ER_XPATH_ERROR, null) ; if ( msg == null || msg.isEmpty( ) ) {
if ( msg == null || msg.isEmpty ( ) ) { msg = XPATHMessages.createXPATHMessage ( XPATHErrorResources.ER_XPATH_ERROR, null ) ;
catch (final Exception e) { Exception unwrapped = e; while (unwrapped instanceof WrappedRuntimeException) { unwrapped = ((WrappedRuntimeException) unwrapped).getException(); } String msg = unwrapped.getMessage(); <extra_id_0> } final TransformerException te = new TransformerException(msg, mainExp_, unwrapped); final ErrorListener el = xpathContext.getErrorListener(); if (null != el) { el.fatalError(te); }