[
http://opensource.atlassian.com/projects/roller/browse/ROL-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Johnson resolved ROL-1509.
--------------------------------
Resolution: Fixed
NPE in preview, fixed by adding null check around requestParameters reference
Fixed in trunk for 4.0
http://svn.apache.org/viewvc?view=rev&rev=563482
Fixed in roller_3.1 branch for 3.1.1
http://svn.apache.org/viewvc?view=rev&rev=563493
> Critical Error durant Preview when a template uses getRequestParameter
> ----------------------------------------------------------------------
>
> Key: ROL-1509
> URL:
> http://opensource.atlassian.com/projects/roller/browse/ROL-1509
> Project: Roller
> Issue Type: Bug
> Components: Page Rendering & Management
> Affects Versions: 3.1
> Environment: Windows/Linux (Ubuntu)
> Reporter: Nicolas Muller
> Assignee: David Johnson
> Fix For: 3.1.1, 4.0
>
>
> We use the following line in a template (sotto for example) :
> $model.getRequestParameter("myParam")
> So when we try to try ti have a preview about the theme in the
> Preferences->Theme->Preview or with the "Full Preview" onto a post we have a
> NullPointerException.
> So the preview is never displayed in the navigator and a stacktrace is
> present in the log file.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira