Fixed nullpointer in sessiondialog