Skip to content

Commit

Permalink
fix(plc4j/drivers/s7): fix NPE when Camel can not establish connectio…
Browse files Browse the repository at this point in the history
…n immediately during route start
  • Loading branch information
Jochen Meierhofer committed Nov 5, 2024
1 parent 6037919 commit b0ae851
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ public void channelUnregistered(ChannelHandlerContext ctx) throws Exception {
embededChannel.pipeline().fireUserEventTriggered(new DisconnectedEvent());
}

logger.info(embedCtx.executor().toString());
if (embedCtx != null)
logger.info(embedCtx.executor().toString());

if ((tcpChannel == primaryChannel) &&
(primaryChannel == ctx.channel()))
Expand Down

0 comments on commit b0ae851

Please sign in to comment.