Other: fixed rare NPE error on wrong connection, fixed formal param in Aminatou, the Fateshifter;

This commit is contained in:
Oleg Agafonov 2021-08-21 11:19:34 +04:00
parent 33380f09c2
commit 07d0e590a9
2 changed files with 3 additions and 4 deletions

View file

@ -518,7 +518,7 @@ public class SessionImpl implements Session {
}
try {
if (callbackClient.isConnected()) {
if (callbackClient != null && callbackClient.isConnected()) {
callbackClient.removeListener(callbackHandler);
callbackClient.disconnect();
}