Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6191

Map2Bean should support empty files/nodes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4
    • 5.4
    • configuration

    Description

      When Jimmy creates a new empty file on the file system, or a new resource in JCR (no text property nor binary node yet), Map2BeanTransformer currently explicitly throws an NPE.
      This should not be considered an invalid behavior, we don't want Jimmy to get puzzled at that cryptic stack trace.

      YamlReader currently reads null out of such empty file/node, but regardless of where the map comes from, Map2Bean should be supportive, and eventually treat null as an empty map (which actually works).

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD