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

Automation - NPE exception in Fn.getVocabularyLabel on missing key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0-HF06
    • Fix Version/s: 7.10, 8.10
    • Component/s: Automation
    • Tags:
    • Upgrade notes:
      Hide

      When a key is missing in a vocabulary, instead of a thrown NPE exception, now the key is returned.

      Show
      When a key is missing in a vocabulary, instead of a thrown NPE exception, now the key is returned.

      Description

      When using the Fn.getVocabularyLabel function in the "Run script" operation with a key that does not exist, a NPE exception is thrown.

      here is an example:
      Context["LABEL"]=Fn.getVocabularyLabel("VOC","KEY");
      where KEY does not exist in the vocabulary VOC.

      Attached is the relevant part of the server log.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: