Nicolas Peltier created SLING-7114: -------------------------------------- Summary: JsonUtil.unbox generates a NPE with null values in object Key: SLING-7114 URL: https://issues.apache.org/jira/browse/SLING-7114 Project: Sling Issue Type: Bug Components: Launchpad Affects Versions: Launchpad Integration Tests 1.0.2 Reporter: Nicolas Peltier
org.apache.sling.launchpad.webapp.integrationtest.util.JsonUtil.unbox fails in case of a null value in objects with a NPE java.lang.NullPointerException at java.util.HashMap.merge(HashMap.java:1224) at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet.lambda$entryConsumer$0(Collections.java:1575) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntrySetSpliterator.forEachRemaining(Collections.java:1600) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) -- This message was sent by Atlassian JIRA (v6.4.14#64029)