[
http://jira.magnolia-cms.com/browse/MGNLSTK-788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grégory Joseph updated MGNLSTK-788:
-----------------------------------
Description:
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:
{noformat}
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
{noformat}
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.
was:
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:
{noformat}
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
{noformat}
We should handle this more gracefully, possibly with a {{NullTheme}}
implementation.
> Ugly freemarker exception when no theme is selected
> ---------------------------------------------------
>
> Key: MGNLSTK-788
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-788
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Affects Versions: 1.4.4
> Reporter: Grégory Joseph
> Assignee: Philipp Bärfuss
> Fix For: 1.4.x
>
>
> 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:
> {noformat}
> 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
> {noformat}
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------