Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1435

Fix NPE when getting the bound elements in <nuxeo-layout>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.7
    • Fix Version/s: 3.0.8
    • Component/s: UI
    • Tags:
    • Team:
      UI
    • Sprint:
      UI - 2021-13

      Description

      In <nuxeo-layout>, the _getBoundElements(property) method is used to get the elements of the layout that are bound to a provided property.
      However, in it it is assumed that all the nodeInfo objects will contain a bindings array, meaning that they are bound to at least one property, which is not always the case (ex: if a layout uses a <label> element).
      The goal is to check if there are indeed bindings before actually trying to iterate over them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mnixo Miguel Nixo
                Reporter:
                mnixo Miguel Nixo
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m