On Tuesday 03 July 2018 14:06:23 Andreas Schaefer wrote:
> Hi

Hi,

> I just checked out the latest from Sling GIT repo and built
> org-apache-sling-starter (mvn --update-snapshots clean install). When I
> start the resulting standalone jar file opening Composum fails with:
> 
> java.lang.NullPointerException
>       at com.composum.sling.core.util.LinkUtil.getExtension(LinkUtil.java:342)
>       at com.composum.sling.core.util.LinkUtil.getExtension(LinkUtil.java:299)
>       at com.composum.sling.core.util.LinkUtil.getUrl(LinkUtil.java:136)
>       at com.composum.sling.core.util.LinkUtil.getUrl(LinkUtil.java:94)
>       at com.composum.sling.core.util.LinkUtil.getUrl(LinkUtil.java:45)
>       at
> com.composum.sling.core.servlet.AbstractConsoleServlet.doGet(AbstractConsol
> eServlet.java:80)
> 
> I tried to reverse the logic in that line:
> 
> //                    if (resourceType != null &&
> !content.getPrimaryType().equals(resourceType)) { if (resourceType != null
> && !resourceType.equals(content.getPrimaryType())) {
> 
> But then I still cannot bring up Composum.

this is a known and fixed issue (see Composum #132).

Regards,
O.

> Cheers - Andy Schaefer

Reply via email to