You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ahmed Musallam (Jira)" <ji...@apache.org> on 2021/11/17 21:04:00 UTC

[jira] [Commented] (SLING-10927) NPE in ResolutionCache when the Service is modified

    [ https://issues.apache.org/jira/browse/SLING-10927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445489#comment-17445489 ] 

Ahmed Musallam commented on SLING-10927:
----------------------------------------

PR raised here: https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/23

> NPE in ResolutionCache when the Service is modified
> ---------------------------------------------------
>
>                 Key: SLING-10927
>                 URL: https://issues.apache.org/jira/browse/SLING-10927
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: Servlets Resolver 2.9.0
>            Reporter: Ahmed Musallam
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In version 2.8.2 of the Servlet Resolver, an NPE is thrown here:
> [https://github.com/apache/sling-org-apache-sling-servlets-resolver/blob/org.apache.sling.servlets.resolver-2.8.2/src/main/java/org/apache/sling/servlets/resolver/internal/resolution/ResolutionCache.java#L98]
> When the component is modified.
> since `cache` member is set to null on deactivate here: 
> [https://github.com/apache/sling-org-apache-sling-servlets-resolver/blob/org.apache.sling.servlets.resolver-2.8.2/src/main/java/org/apache/sling/servlets/resolver/internal/resolution/ResolutionCache.java#L157]
>  
> looking at the code in version 2.9.0 the issue persist there as well./



--
This message was sent by Atlassian Jira
(v8.20.1#820001)