fixed null pointer in dataversesession.