Description
in general, it should never happen, however the HstLink api says:
/** * @return the {@link Mount} that can represent this link. This might be an {@link Mount} which is a different one then the * {@link Mount} the link was created in. This could result in a cross-domain (different hostname) link being created, depending * on the backing {@link Mount#getVirtualHost()}. If no {@link Mount} is set, <code>null</code> can be returned * */ Mount getMount();
Most of the HstLinkImpl logic has null checks whenever 'mount' instance var is used, however the org.hippoecm.hst.core.linking.HstLinkImpl.HstLinkImplCharacteristics does not have these null checks. We should include them, and in case the mount is null, return some sensible default