Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2391

Improve saftey of InfosetImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Back End, Clean Ups
    • None

    Description

      In InfosetImpl, DIComplex and DIArrays have arrays of child elements. To reduce memory usage, Daffodil will set some of these array indices to null to if we determine that they will never be accessed again. Unfortunately, this means that if there is a bug in Daffodil and it does get accessed then we'll get a NullPointerException. We should refactor this code to avoid potential NPE's, likely by changing these array contents to Maybe's.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawrence Steve Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: