Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3050

backport : NullPointerException in HippoDocument#getHippoCompound when compound is null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.28.06
    • Component/s: None
    • Labels:
    • Similar issues:
    • Sprint:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: