Skip to content

Commit d5b984e

Browse files
committed
Correction.
1 parent 2c2163d commit d5b984e

File tree

1 file changed

+2
-1
lines changed
  • src/fbjava-impl/src/main/java/org/firebirdsql/fbjava/impl

1 file changed

+2
-1
lines changed

src/fbjava-impl/src/main/java/org/firebirdsql/fbjava/impl/Routine.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ Object run(IStatus status, IExternalContext context, Object[] args) throws Throw
176176
}
177177
catch (Exception | ExceptionInInitializerError t)
178178
{
179-
throw t.getCause();
179+
Throwable cause = t.getCause();
180+
throw cause == null ? t : cause;
180181
}
181182
});
182183
}

0 commit comments

Comments
 (0)