Fixed NPE in create session ws.