Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12238

Prevent NullPointerException if global transformer returns null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Rewriter 1.3.8
    • Rewriter 1.3.10
    • General
    • None

    Description

      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

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: