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
- relates to
-
HSTTWO-3041 NullPointerException in HippoDocument#getHippoCompound when compound is null
- Closed