Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3072

NPE when requesting content bean in sitemapitem handler

    XMLWordPrintable

Details

    Description

      In a sitemapitem handler, called by HstFilter, I try to obtain the current content bean doing this:

      HippoBean contentBean = RequestContextProvider.get().getContentBean();

      This leads to an NPE in

      org.hippoecm.hst.site.request.HstRequestContextImpl#getObjectConverter()

      where the code tries to dereference the "contentBeansTool", which is not yet available.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tjeger Tobias Jeger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: