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

ametys:contentMetadata crashes when contentId is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0, 4.7.12
    • 4.7.10
    • None
    • None
    • 4.8.0 M11

      Caused by: java.lang.NullPointerException: Cannot invoke "String.indexOf(String)" because "id" is null
      at org.ametys.plugins.repository.AmetysObjectResolver#resolveById:325
      at org.ametys.cms.transformation.xslt.AmetysXSLTHelper#contentMetadata:389
      at org.ametys.cms.transformation.xslt.AmetysXSLTHelper#contentMetadata:416
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl#invoke0 (Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl#invoke:77
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl#invoke:43
      at java.base/java.lang.reflect.Method#invoke:568
      at org.apache.xalan.extensions.ExtensionHandlerJavaClass#callFunction:367

      check also hasValue

            raphael Raphaël Franchet
            lbouziat Léa Bouziat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: