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