[
https://issues.apache.org/jira/browse/SLING-7115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16159164#comment-16159164
]
Nicolas Peltier edited comment on SLING-7115 at 9/8/17 7:30 PM:
----------------------------------------------------------------
fixed in r1807808
cc [~karlpauls]
didn't break unit tests nor the real life usage i had with it (fixed it on the
contrary).
Feel free to enhance it, am not sure to understand what your problem is with
that (hence me not touching to the other projects)
was (Author: npeltier):
cc [~karlpauls]
didn't break unit tests nor the real life usage i had with it (fixed it on the
contrary).
Feel free to enhance it, am not sure to understand what your problem is with
that (hence me not touching to the other projects)
> JsonUtil.unbox generates a NPE with null values in object
> ---------------------------------------------------------
>
> Key: SLING-7115
> URL: https://issues.apache.org/jira/browse/SLING-7115
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Pipes 1.0.4
> Reporter: Nicolas Peltier
> Assignee: Nicolas Peltier
> Fix For: pipes 1.1.0
>
>
> org.apache.sling.pipes.internal.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)