-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
4.2 M7
In org.ametys.plugins.pagesubscription.observer.AbstractPageSubscriptionObserver we get a site parameter as boolean
protected boolean isNotificationEnabled(Page page) { Site site = page.getSite(); return site.getValue(getSiteParameterId()); }
This code leads to a NPE if the site parameter is not valued, because getValue return null.
In this case, the observer failed and the content is not availble in live workspace.
Waiting for REPOSITORY-402, all calls to site.getValue should be verified and fix with
protected boolean isNotificationEnabled(Page page) { Site site = page.getSite(); // FIXME REPOSITORY-402 Missing a ModelAwareDataHolder#getValue method with a default value return BooleanUtils.isTrue(site.getValue(getSiteParameterId())); }
- Référence
-
REPOSITORY-402 Missing a ModelAwareDataHolder#getValue method with a default value
- Closed