You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "A. J. David Bosschaert (Jira)" <ji...@apache.org> on 2022/02/04 10:46:00 UTC
[jira] [Resolved] (SLING-11118) null returned even if OSGi service is found
[ https://issues.apache.org/jira/browse/SLING-11118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
A. J. David Bosschaert resolved SLING-11118.
--------------------------------------------
Resolution: Fixed
> null returned even if OSGi service is found
> -------------------------------------------
>
> Key: SLING-11118
> URL: https://issues.apache.org/jira/browse/SLING-11118
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Core 2.4.2
> Reporter: A. J. David Bosschaert
> Assignee: A. J. David Bosschaert
> Priority: Major
> Fix For: Scripting Core 2.4.4
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> AbstractBundledRenderUnit.getService(String className) can return {{null}} for a service even if the service is found in the service registry.
> This is because the last line of this method always returns {{null}} which discards the result from the local {{this.services}} cache if it's found in there.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)