Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31010

Fix possible NPE on KeyValueBlobTransientStore GC

    XMLWordPrintable

    Details

      Description

      The computeStoargeSize method may raise the following NPE

      java.lang.NullPointerException: null
      	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269) ~[?:1.8.0_312]
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_312]
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_312]
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_312]
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_312]
      	at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_312]
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_312]
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_312]
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_312]
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_312]
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_312]
      	at java.util.stream.LongPipeline.reduce(LongPipeline.java:461) ~[?:1.8.0_312]
      	at java.util.stream.LongPipeline.sum(LongPipeline.java:419) ~[?:1.8.0_312]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.computeStorageSize(KeyValueBlobTransientStore.java:271) ~[nuxeo-core-cache-10.10-HF53.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.doGC(KeyValueBlobTransientStore.java:293) ~[nuxeo-core-cache-10.10-HF53.jar:?]
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: