Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-1994

[REGRESSION] New property model makes list properties return null values instead of empty list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.3, 5.2 M1
    • Component/s: Core

      Description

      The new following test won't pass in TestModel.testScalarList() :

      ArrayList<String> emptyList = arrayList();
      dp.get("references").init(emptyList);

      prop = dp.get("references");
      prop.setValue(emptyList);

      assertEquals(emptyList, prop.getValue(List.class));
      assertEquals(emptyList, prop.getValue());

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified