.get("study.filter");
LoginContext context = (LoginContext) session.get("login.context");
- logger.info("Deconnection of " + getConnectedUser().toString()
+ String connectedUsr = "";
+ if (getConnectedUser() != null) {
+ connectedUsr = getConnectedUser().toString();
+ }
+
+ logger.info("Deconnection of " + connectedUsr
+ ".");
- context.logout();
+
+ if (context != null) {
+ context.logout();
+ }
// TODO: ProjectSettings.deleteDownloadDirectory(user);
- sfilter.put("state", "ANY");
- sfilter.put("author", "0");
+ if (sfilter != null) {
+ sfilter.put("state", "ANY");
+ sfilter.put("author", "0");
+ }
this.disconnect(); // Updates the session context