There was an error while loading. Please reload this page.
1 parent 74c6dd0 commit 0493c15Copy full SHA for 0493c15
src/main/java/org/owasp/html/AutoCloseableHtmlStreamRenderer.java
@@ -76,7 +76,9 @@ static void closeIfAnyCloseable(Object closeable) throws IOException {
76
try {
77
METHOD_CLOSE.invoke(closeable, ZERO_OBJECTS);
78
} catch (IllegalAccessException ex) {
79
- throw new AssertionError("close not public", ex);
+ AssertionError ae = new AssertionError("close not public");
80
+ ae.initCause(ex);
81
+ throw ae;
82
} catch (InvocationTargetException ex) {
83
Throwable tgt = ex.getTargetException();
84
if (tgt instanceof IOException) {
0 commit comments