Skip to content

Commit

Permalink
Avoid NPE when the session is not created
Browse files Browse the repository at this point in the history
  • Loading branch information
azurvii authored Dec 16, 2021
1 parent 6ab4bd8 commit 7541ad4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Session getSession()

public boolean isConnected()
{
return session.isOpen();
return session != null && session.isOpen();
}

public boolean isNotConnected()
Expand Down

0 comments on commit 7541ad4

Please sign in to comment.