A NullPointerException happens during validation; it would seem that this should either raise a validation error, or it should be programmed defensively and be robust against null pointers.


exception during execution of action
java.lang.NullPointerException
at webdsl.generated.domain.Publication.validateReferencesTo_internal_(Publication.java:2639)
at webdsl.generated.domain.InProceedings.validateSave_(InProceedings.java:478)
at webdsl.generated.domain.InProceedings.validateSave(InProceedings.java:24)
at utils.AbstractPageServlet.validateEntitiesAfterAction(AbstractPageServlet.java:202)
at webdsl.generated.templates.yourBibAction_s_ad1_s_ad0StringPublicationBibliographyString_Template$1.run(yourBibAction_s_ad1_s_ad0StringPublicationBibliographyString_Template.java:325)
at webdsl.generated.templates.yourBibAction_s_ad1_s_ad0StringPublicationBibliographyString_Template.handleActionsInternal(yourBibAction_s_ad1_s_ad0StringPublicationBibliographyString_Template.java:240)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.wrapsubmitString_Template.handleActionsInternal(wrapsubmitString_Template.java:414)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.yourBibAction_s_ad1StringBibliographyPublication_Template.handleActionsInternal(yourBibAction_s_ad1StringBibliographyPublication_Template.java:307)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.wrapsubmitString_Template.handleActionsInternal(wrapsubmitString_Template.java:414)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.yourBibActionPublicationBibliography_Template.handleActionsInternal(yourBibActionPublicationBibliography_Template.java:747)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.yourActiveBibliographies_yourActiveBibliographyAction0BibliographyPublication_Template.handleActionsInternal(yourActiveBibliographies_yourActiveBibliographyAction0BibliographyPublication_Template.java:305)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.yourActiveBibliographiesMenu_Template.handleActionsInternal(yourActiveBibliographiesMenu_Template.java:682)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.yourActiveBibliographiesPublication_Template.handleActionsInternal(yourActiveBibliographiesPublication_Template.java:311)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.publicationBibliographiesSidebarPublication_Template.handleActionsInternal(publicationBibliographiesSidebarPublication_Template.java:587)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.sidebarBibliographies_ta0Publication_Template.handleActionsInternal(sidebarBibliographies_ta0Publication_Template.java:254)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.sidebarblock_Template.handleActionsInternal(sidebarblock_Template.java:295)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.sidebarBibliographiesPublication_Template.handleActionsInternal(sidebarBibliographiesPublication_Template.java:295)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.publicationPage_sidebarwrap0StringStringPublication_Template.handleActionsInternal(publicationPage_sidebarwrap0StringStringPublication_Template.java:681)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.localMenuPage_body0_Template.handleActionsInternal(localMenuPage_body0_Template.java:566)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.main_Template.handleActionsInternal(main_Template.java:555)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.localMenuPage_Template.handleActionsInternal(localMenuPage_Template.java:244)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.publicationPagePublicationStringString_Template.handleActionsInternal(publicationPagePublicationStringString_Template.java:290)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.publication_Template.handleActionsInternal(publication_Template.java:354)
at utils.TemplateServlet.handleActions(TemplateServlet.java:55)
at webdsl.generated.templates.PublicationPage.serve(PublicationPage.java:108)
at utils.DispatchServletHelper.handlePage(DispatchServletHelper.java:1013)
at utils.DispatchServletHelper.doServe(DispatchServletHelper.java:972)
at utils.DispatchServlet.doPost(DispatchServlet.java:199)

Submitted by Eelco Visser on 19 February 2011 at 12:32

On 21 February 2011 at 16:37 Danny Groenewegen commented:

null dereference in validate will now (revision 4435) result in a failed check, similar to access control rules and predicates


On 21 February 2011 at 16:37 Danny Groenewegen closed this issue.

On 21 February 2011 at 16:37 Danny Groenewegen tagged 1.2.8

Log in to post comments