Skip to content
Snippets Groups Projects
Commit 7d0c7c0d authored by srosse's avatar srosse
Browse files

no-jira: fix a class cast exception if a "" is saved as default value

parent 15fa2161
No related branches found
No related tags found
No related merge requests found
......@@ -386,7 +386,11 @@ public class CourseConfig implements Serializable, Cloneable {
* @return true if the efficency statement is enabled
*/
public Long getCertificateTemplate() {
Long templateId = (Long)configuration.get(CERTIFICATE_TEMPLATE);
Object templateIdObj = configuration.get(CERTIFICATE_TEMPLATE);
Long templateId = null;
if(templateIdObj instanceof Long) {
templateId = (Long)templateIdObj;
}
return templateId;
}
......
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