Skip to content

Commit

Permalink
Fixes a null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Venturi committed Jan 27, 2024
1 parent a7ef770 commit 209a99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/eu/lucaventuri/fibry/BaseActor.java
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public final void processMessages() {
takeAndProcessSingleMessageTimeout();
} catch (Exception e) {
if (autoHealing.onInterruption != null && (Thread.interrupted() ||
e.getClass() == InterruptedException.class || e.getCause().getClass() == InterruptedException.class)) {
e instanceof InterruptedException || e.getCause() instanceof InterruptedException)) {
Exceptions.logShort(() -> autoHealing.onInterruption.accept(e));
} else {
System.err.println(e);
Expand Down

0 comments on commit 209a99b

Please sign in to comment.