Skip to content
Snippets Groups Projects
Commit 33544baa authored by srosse's avatar srosse
Browse files

OO-956: check if there is something to clone

parent 7af76099
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,10 @@ public class NewControllerFactory extends LogDelegator { ...@@ -140,7 +140,10 @@ public class NewControllerFactory extends LogDelegator {
private ContextEntryControllerCreator getContextEntryControllerCreator(String type) { private ContextEntryControllerCreator getContextEntryControllerCreator(String type) {
ContextEntryControllerCreator typeHandler = contextEntryControllerCreators.get(type); ContextEntryControllerCreator typeHandler = contextEntryControllerCreators.get(type);
return typeHandler.clone(); if(typeHandler != null) {
return typeHandler.clone();
}
return null;
} }
/** /**
......
...@@ -104,7 +104,7 @@ public class ResumeController extends FormBasicController implements SupportsAft ...@@ -104,7 +104,7 @@ public class ResumeController extends FormBasicController implements SupportsAft
//make the resume secure. If something fail, don't generate a red screen //make the resume secure. If something fail, don't generate a red screen
NewControllerFactory.getInstance().launch(ureq, bwControl); NewControllerFactory.getInstance().launch(ureq, bwControl);
} catch (Exception e) { } catch (Exception e) {
logError("Error while resumging", e); logError("Error while resuming", e);
} }
} }
return false; return false;
......
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