Skip to content

Commit

Permalink
Fix #10229 EE10 Idle Timeout
Browse files Browse the repository at this point in the history
Fixed NPE if no failure listener
  • Loading branch information
gregw committed Aug 4, 2023
1 parent 254ce26 commit c506502
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ else if (ExceptionUtil.areNotAssociated(_failure.getFailure(), x) && _failure.ge
{
if (LOG.isDebugEnabled())
LOG.debug("invokeListeners {} {}", HttpChannelState.this, onFailure, x);
onFailure.accept(x);
if (onFailure != null)
onFailure.accept(x);
}
catch (Throwable throwable)
{
Expand Down

0 comments on commit c506502

Please sign in to comment.