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

Cannot set List/Map properties with null elements

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • None
    • spin
    • 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.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce