Skip to content

Commit 209a99b

Browse files
author
Luca Venturi
committed
Fixes a null pointer exception
1 parent a7ef770 commit 209a99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/lucaventuri/fibry/BaseActor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public final void processMessages() {
309309
takeAndProcessSingleMessageTimeout();
310310
} catch (Exception e) {
311311
if (autoHealing.onInterruption != null && (Thread.interrupted() ||
312-
e.getClass() == InterruptedException.class || e.getCause().getClass() == InterruptedException.class)) {
312+
e instanceof InterruptedException || e.getCause() instanceof InterruptedException)) {
313313
Exceptions.logShort(() -> autoHealing.onInterruption.accept(e));
314314
} else {
315315
System.err.println(e);

0 commit comments

Comments
 (0)