You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2022/06/01 16:42:00 UTC
[jira] [Created] (SLING-11367) Potential NPE as ResolveContext.getProviderState() is nullable
Angela Schreiber created SLING-11367:
----------------------------------------
Summary: Potential NPE as ResolveContext.getProviderState() is nullable
Key: SLING-11367
URL: https://issues.apache.org/jira/browse/SLING-11367
Project: Sling
Issue Type: Sub-task
Components: JCR
Affects Versions: JCR Resource 3.2.0
Reporter: Angela Schreiber
since {{ResolveContext.getProviderState()}} is defined to return a nullable provider state code analysis spots this a potential source for NPE. according to [~cziegeler] this should never return null as long as the provider is active.
i would suggest to move access to session, resourcefactory and helperdata to a utility with comments on why the NPE should not occur.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)