[ https://issues.apache.org/jira/browse/SLING-12238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-12238. -------------------------------------- Resolution: Fixed https://github.com/apache/sling-org-apache-sling-rewriter/commit/bd45e2145a438899c487184ce388a579270495f0 > Prevent NullPointerException if global transformer returns null > --------------------------------------------------------------- > > Key: SLING-12238 > URL: https://issues.apache.org/jira/browse/SLING-12238 > Project: Sling > Issue Type: Improvement > Components: General > Affects Versions: Rewriter 1.3.8 > Reporter: Carsten Ziegeler > Assignee: Carsten Ziegeler > Priority: Major > Fix For: Rewriter 1.3.10 > > > A TransformerFactory for a global transformer might return null for the > Transformer, similar the factory might already be gone. Both result in a null > value inserted into the array of global transformers. > Later on, when that array is processed, there is no null check anymore. > Potentially resulting in a NullPointerException > This should be guarded with a null check, as this might happen in a dynamic > system -- This message was sent by Atlassian Jira (v8.20.10#820010)