Uploaded image for project: 'Content IO'
  1. Content IO
  2. CONTENTIO-271

NPE when displaying SCC in _admin when content-type is unknown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.14.0, 3.13.5
    • None
    • 4.8.0 M11

      How to reproduce

      • Go to _admin
      • Open SCC tool
      • Edit a SCC where the content type selected does not exists (for example berenice changed the content type )

      Actual behavior

      Caused by: java.lang.NullPointerException
              at org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollectionDAO.getSynchronizableContentsCollectionAsJson(SynchronizableContentsCollectionDAO.java:211)
              at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
              at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
              at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
              at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
              at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
              at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
              at org.ametys.plugins.contentio.synchronize.GetSynchronizableContentsCollectionsAction.act(GetSynchronizableContentsCollectionsAction.java:54)
      

            ggouin Guillaume Gouin
            cedric Cédric Damioli
            Guillaume Gouin Guillaume Gouin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: