tallence / core-forms

A simple and lean formeditor for the CoreMedia CMS.
Apache License 2.0
19 stars 12 forks source link

NPE in FormController #58

Closed suicide closed 4 years ago

suicide commented 4 years ago

if you submit a form with some bogus content ids you will get the following npe:

2020-07-24 03:50:11 - [ERROR] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/blueprint].[dispatcherServlet] [] - Servlet.service() for servlet [dispatcherServlet] in context with path [/blueprint] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause (http-nio-42180-exec-11) java.lang.NullPointerException: null
at com.tallence.formeditor.cae.FormFreemarkerFacade.parseFormElements(FormFreemarkerFacade.java:48)
at com.tallence.formeditor.cae.handler.FormController.getFormElements(FormController.java:161)
at com.tallence.formeditor.cae.handler.FormController.socialFormAction(FormController.java:100)
...

the FormEditor object is null in that case