You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Andreas Schaefer Sr." <sc...@me.com> on 2017/07/24 16:33:40 UTC

Distribution List of Services fails due to NPE

The distribution fails to list its services under /libs/sling/distribution/services.1.json with an NPE.

The reason is that the DefaultDistributionComponentProvider.getComponentMap() returns null
for the TRIGGER kind.

The getComponents() should check for a null to avoid the NPE.

Cheers - Andy Schaefer Sr.

Re: Distribution List of Services fails due to NPE

Posted by Timothee Maret <tm...@apache.org>.
Hi Andreas,

Thanks for reporting this.
Could you open a JIRA issue with the details to reproduce it ?

Regards,

Timothee

2017-07-24 18:33 GMT+02:00 Andreas Schaefer Sr. <sc...@me.com>:

> The distribution fails to list its services under /libs/sling/distribution/services.1.json
> with an NPE.
>
> The reason is that the DefaultDistributionComponentProvider.getComponentMap()
> returns null
> for the TRIGGER kind.
>
> The getComponents() should check for a null to avoid the NPE.
>
> Cheers - Andy Schaefer Sr.