Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5299

Add infos in the error message thrown when a metadadef is not found

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5.4, 3.7, 3.9
    • 3.5.3
    • None
    • None

      The error we get just says

      java.lang.NullPointerException at org.ametys.cms.content.MetadataSetDefGenerator._saxMetadataSetElement(MetadataSetDefGenerator.java:148)

      Adding the metadatasetName may be useful.

          [CMS-5299] Add infos in the error message thrown when a metadadef is not found

          We should throw a detailed exception like 'The metatada-set <name> in mode <mode> references an unexisting metadata: <metadata>'.

          Nicolas Gavalda (Inactive) added a comment - We should throw a detailed exception like 'The metatada-set <name> in mode <mode> references an unexisting metadata: <metadata>'.

            Unassigned Unassigned
            delphine Delphine Gavalda (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: