Skip to content
Snippets Groups Projects
Commit 33886f66 authored by Julian Hochstetter's avatar Julian Hochstetter
Browse files

Task #3791: catch JSONExcpetion which occurs if session has no user,

cleanup is now working as expected
parent 5477ce44
No related merge requests found
......@@ -31,6 +31,7 @@ import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import net.sf.json.JSONException;
import net.sf.json.JSONObject;
import org.slf4j.Logger;
......@@ -121,6 +122,8 @@ public class SessionService implements ISessionService {
logger.debug("Cleaning up Feedback document " + d.getId());
} catch (IOException e) {
logger.error("Could not delete Feedback document " + d.getId());
} catch (JSONException e) {
logger.error("Could not delete Feedback document {}, error is: {} ", new Object[] {d.getId(), e});
}
}
if (!results.isEmpty()) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment