-
Bug
-
Resolution: Won't Do
-
Neutral
-
1.4.4
-
None
-
None
-
-
Empty show more show less
If I create a page in a project that has STK (not sure if ETK would make a difference), and no theme is present or configured, I get an ugly FreeMarker error:
freemarker.template.TemplateModelException: get(cssFiles) failed on instance of info.magnolia.module.templatingkit.style.ThemeReference at freemarker.ext.beans.BeanModel.get(BeanModel.java:223) at freemarker.core.Dot._getAsTemplateModel(Dot.java:76) <...> Caused by: java.lang.NullPointerException at info.magnolia.module.templatingkit.style.ThemeReference.getCssFiles(ThemeReference.java:81) ... 115 more
We should handle this more gracefully, possibly with a NullTheme implementation.
Edit: furthermore, I now notice that the site in STK is configured to use theme pop by default, whether that theme is there or not.
Acceptance criteria