Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -200,7 +200,7 @@ public abstract class AbstractTransportService implements TransportService { |
200 | 200 | @Override |
201 | 201 | public void deregisterSession(TransportProtos.SessionInfoProto sessionInfo) { |
202 | 202 | SessionMetaData currentSession = sessions.get(toId(sessionInfo)); |
203 | - if (currentSession.hasScheduledFuture()) { | |
203 | + if (currentSession != null && currentSession.hasScheduledFuture()) { | |
204 | 204 | log.debug("Stopping scheduler to avoid resending response if request has been ack."); |
205 | 205 | currentSession.getScheduledFuture().cancel(false); |
206 | 206 | } | ... | ... |