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

Map2Bean should support empty files/nodes

XMLWordPrintable

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

      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).

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD