Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
33886f66
Commit
33886f66
authored
12 years ago
by
Julian Hochstetter
Browse files
Options
Downloads
Patches
Plain Diff
Task #3791: catch JSONExcpetion which occurs if session has no user,
cleanup is now working as expected
parent
5477ce44
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/services/SessionService.java
+3
-0
3 additions, 0 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
with
3 additions
and
0 deletions
src/main/java/de/thm/arsnova/services/SessionService.java
+
3
−
0
View file @
33886f66
...
...
@@ -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
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment