Skip to content

Commit

Permalink
fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
lolocohen committed Feb 18, 2020
1 parent bc144ce commit a0562d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void closeConnection(final AsyncClientClassContext context, final boolean
if (removeJobConnection) {
final String connectionUuid = context.getConnectionUuid();
final AsyncClientNioServer clientJobServer = getDriver().getAsyncClientNioServer();
clientJobServer.performContextAction(ctx -> connectionUuid.equals(ctx.getConnectionUuid()), clientJobServer::closeConnection);
clientJobServer.performContextAction(ctx -> (connectionUuid != null) && connectionUuid.equals(ctx.getConnectionUuid()), clientJobServer::closeConnection);
}
}

Expand Down

0 comments on commit a0562d6

Please sign in to comment.