Carsten Ziegeler created SLING-12238:
----------------------------------------
Summary: 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
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)