Fixed a NullPointer in sessionDestroy

Fix a NullPointer in sessionDestroy