java.lang.NullPointerException: null at java.util.HashMap.merge(HashMap.java:1225) at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1380) 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) at com.xxx.web.controller.TaskController.getOmsAccidCloudCCUserIdMap(TaskController.java:648) at com.xxx.web.controller.TaskController.executePushNewRegisterLead(TaskController.java:400) at com.xxx.web.controller.TaskController.pushNewRegister(TaskController.java:145)
# end_nanos > start_nanos? # Another way, the time part may start with 0, which means # it will be regarded as oct format, use "10#" to ensure # calculateing with decimal if [ "$end_nanos" -lt "$start_nanos" ];then end_s=$(( 10#$end_s - 1 )) end_nanos=$(( 10#$end_nanos + 10**9 )) fi
This is a complete guide to Java 8 features, enhancements, date and time API, and coding examples. The examples from this tutorial are tested in our local development environment. You can simply clone from Github and try to use it in your projects or practice.