fixed null pointer error in Session.java