Cannot set List/Map properties with null elements

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Won't Fix
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: spin
    • None

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: