Fixed NPE error from null session id.
Fixed NPE error from null session id.
Fixed NPE error from null session id.