Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12815

PageModelSerializer (both v0.9 and v1.0) throw an NPE in case JsonAnyGetter used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.2.0, 100.2.0
    • site-toolkit
    • None
    • 0.25
    • Quasar
    • Puma Sprint 229

    Description

      in case

      JsonAnyGetter
      

      is used in an object, eg HippoBean, that gets serialized by

      org.hippoecm.hst.pagemodelapi.v10.core.container.PageModelSerializer

      or

      org.hippoecm.hst.pagemodelapi.v09.core.container.HippoBeanSerializer

      an NPE is thrown

      The reason is that our serializer does not implement

      com.fasterxml.jackson.databind.ser.ResolvableSerializer
      

      resulting in this problem

      [1] https://stackoverflow.com/questions/41890497/jackson-jsonanysetter-nullpointer-exception-during-serialization-deserializat

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: