assert that tragic even exception is never null

This commit is contained in:
Simon Willnauer 2016-01-05 15:45:41 +01:00
parent f69502dd04
commit 2370ace922
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ public class TranslogWriter extends TranslogReader {
}
private synchronized final void closeWithTragicEvent(Throwable throwable) throws IOException {
assert throwable != null : "throwable must not be null in a tragic event";
if (tragedy == null) {
tragedy = throwable;
} else {