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

[AmetysXSLTHelper] hasValue could be more robust

XMLWordPrintable

    • 4.8.0 M8

      Today if you call AmetysXSLTHelper.hasValue('', 'toto'), you get 

      java.lang.NullPointerException: Cannot invoke "String.indexOf(String)" because "id" is null
      at org.ametys.plugins.repository.AmetysObjectResolver#resolveById:302
      at org.ametys.cms.transformation.xslt.AmetysXSLTHelper#hasValue:245

       

      We could add a test before try to resolve in order to not add this test on XSL.

            laurence Laurence Aumeunier
            ogehin Olivier Gehin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: