Skip to content
Snippets Groups Projects
Commit 742ee0d3 authored by srosse's avatar srosse
Browse files

OO-4397: catch NPE while loading the lifecycle

parent cfba33ac
No related branches found
No related tags found
No related merge requests found
...@@ -313,7 +313,7 @@ public class ScoreAccounting { ...@@ -313,7 +313,7 @@ public class ScoreAccounting {
lifecycle.getValidTo();// lifecycle.getValidTo();//
} }
return lifecycle; return lifecycle;
} catch (LazyInitializationException e) { } catch (LazyInitializationException | NullPointerException e) {
//OO-2667: only seen in 1 instance but as it's a critical place, secure the system //OO-2667: only seen in 1 instance but as it's a critical place, secure the system
RepositoryEntry reloadedEntry = CoreSpringFactory.getImpl(RepositoryService.class) RepositoryEntry reloadedEntry = CoreSpringFactory.getImpl(RepositoryService.class)
.loadByKey(cgm.getCourseEntry().getKey()); .loadByKey(cgm.getCourseEntry().getKey());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment