Skip to content

Commit

Permalink
Bugfix: Nullpointerexception when adding a webform via drag & drop +
Browse files Browse the repository at this point in the history
increased version number to 2.0.1
  • Loading branch information
dSeidel committed Jun 23, 2014
1 parent ab1e0f7 commit 9e81ceb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion com.alkacon.opencms.v8.registration/resources/manifest.xml
Expand Up @@ -16,7 +16,7 @@
<description><![CDATA[<p>This module contains a webuser registration framework for OpenCms.</p>
<p>This module can easily be used to create a portal like site.</p>
<p><i>(c) 2011 by Alkacon Software GmbH (http://www.alkacon.com).</i></p>]]></description>
<version>2.0.0</version>
<version>2.0.1</version>
<authorname><![CDATA[Alkacon Software GmbH]]></authorname>
<authoremail><![CDATA[info@alkacon.com]]></authoremail>
<datecreated/>
Expand Down
Expand Up @@ -21,15 +21,13 @@
// initialize the form handler
regForm = (CmsRegistrationFormHandler)CmsFormHandlerFactory.create(pageContext, request, response, CmsRegistrationFormHandler.class.getName(), (String)pageContext.getAttribute("uri"));
%>
<cms:formatter var="content" val="value">
<div>
<%
regForm.createForm();
%>
</div>
</cms:formatter>
</c:otherwise>
</c:choose>


<cms:formatter var="content" val="value">
<div>
<%
regForm.createForm();
%>
</div>
</cms:formatter>

Expand Up @@ -213,6 +213,7 @@ public void init(CmsFormHandler jsp, CmsMessages messages, boolean initial, Stri
if (CmsStringUtil.isEmpty(formConfigUri)) {
formConfigUri = jsp.getRequestContext().getUri();
}
m_configUri = formConfigUri;
CmsFile file = jsp.getCmsObject().readFile(formConfigUri);
CmsXmlContent content = CmsXmlContentFactory.unmarshal(jsp.getCmsObject(), file);

Expand Down
Expand Up @@ -404,7 +404,7 @@ protected void configureForm(HttpServletRequest req, String formConfigUri) throw
} else {
req.getSession().removeAttribute(ATTRIBUTE_FILEITEMS);
}
String formAction = getParameter(PARAM_FORMACTION);
String formAction = getRequest().getParameter(PARAM_FORMACTION);
m_isValidatedCorrect = null;
setInitial(CmsStringUtil.isEmpty(formAction));
// get the localized messages
Expand Down

0 comments on commit 9e81ceb

Please sign in to comment.