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

backport : NullPointerException in HippoDocument#getHippoCompound when compound is null

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.26.13
    • None
    • Sprint 87

    Description

      Location: org.hippoecm.hst.content.beans.standard.HippoDocument#getHippoCompound

      The if-statement in this method will throw a NullPointerException when compound is null. (on compound.getClass() to be exact).

      Snippet from source code:
      if(compound != null && beanMappingClass.isAssignableFrom(compound.getClass())) {
      return (T)compound;
      } else {
      log.debug("Cannot return compound of type '"beanMappingClass.getName()"' for relPath '{}' at '{}' because the compound is of type '"compound.getClass().getName()"'", relPath, this.getPath());
      }

      Version: 2.28.05 (not selectable in JIRA: Version with id '2.28.05' does not exist.)
      This is due to a recent change since this isn't an issue in 2.26.03

      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: