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

HTMLEditor Removing a style in a child skin that doesn't existe anymore in the parent skin, leads to an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.4, 4.7.17, 4.9.0
    • 4.6.0
    • None
    • None

      Heritage of skin :

      Remove into a child skin a style that doesn't exist into the parent skin, like this :

      <link>
              <style remove="true">
                  <inline-editor>btn</inline-editor>
              </style>
          </link> 

      > the CMS can't start because it can't create the ribbon :

       Caused by: java.lang.NullPointerException
          at java.base/java.util.Objects.requireNonNull(Objects.java:208)
          at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
          at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
          at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
          at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
          at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
          at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
          at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
          at org.ametys.cms.clientsideelement.styles.UnorderedListMenu._getStyleCategories(UnorderedListMenu.java:35)
          at org.ametys.cms.clientsideelement.styles.AbstractEditorStyleMenu.getParameters(AbstractEditorStyleMenu.java:122)
          at org.ametys.cms.clientsideelement.styles.AbstractEditorStyleMenu.getScripts(AbstractEditorStyleMenu.java:87)
          at org.ametys.core.ui.StaticFileImportsClientSideElement.getScripts(StaticFileImportsClientSideElement.java:263)
          at org.ametys.core.ui.RibbonConfigurationManager._resolveReferences(RibbonConfigurationManager.java:1139)
          at org.ametys.core.ui.RibbonConfigurationManager._resolveReferences(RibbonConfigurationManager.java:1159)
          at org.ametys.core.ui.RibbonConfigurationManager._resolveReferences(RibbonConfigurationManager.java:1147)
          at org.ametys.core.ui.RibbonConfigurationManager._createGroupForUser(RibbonConfigurationManager.java:1089)
          at org.ametys.core.ui.RibbonConfigurationManager._generateTabGroups(RibbonConfigurationManager.java:881)
          at org.ametys.core.ui.RibbonConfigurationManager.saxRibbonDefinition(RibbonConfigurationManager.java:814)
          at org.ametys.plugins.core.ui.WorkspaceGenerator.doGenerate(WorkspaceGenerator.java:186)
          ... 58 more

            Unassigned Unassigned
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: