Skip to content

Commit

Permalink
Tempus-545 Fixed null pointer execption thrown on gateway device disc…
Browse files Browse the repository at this point in the history
…onnect.
  • Loading branch information
Himanshu-it committed Jul 18, 2018
1 parent d1d506a commit 6944d46
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ private void processDisconnect(ChannelHandlerContext ctx) {
processor.process(sessionCloseMsg);
if (gatewaySessionCtx != null) {
gatewaySessionCtx.onGatewayDisconnect();
sparkPlugDecodeService.updateDeviceMapState();
if (sparkPlugDecodeService != null)
sparkPlugDecodeService.updateDeviceMapState();
}
}
}
Expand Down

0 comments on commit 6944d46

Please sign in to comment.