Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-4480

Cannot set List/Map properties with null elements

    Details

    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: spin
    • Labels:
      None

      Description

      NullPointerException at last line.

      Map<String, Object> json = new HashMap<String, Object>();
      json.put("age", 18);
      json.put("name", null);
      
      SpinJsonNode spinJsonNode = JSON("{}");
      spinJsonNode.prop("properties", json);
      

      The problem also occurs when setting a list with a null element or when processing JsonPath with on a document with null property values.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            thorben.lindhauer Thorben Lindhauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development