When an argument is null logger raises java.lang.NullPointerException
watarhu opened this issue · comments
Stacktrace:
java.lang.NullPointerException
at org.bytemechanics.logger.internal.LogBean.isThrowable(LogBean.java:140)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1351)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.bytemechanics.logger.internal.LogBean.getThrowable(LogBean.java:154)
at org.bytemechanics.logger.internal.adapters.impl.LoggerLog4jImpl.log(LoggerLog4jImpl.java:65)
at org.bytemechanics.logger.FluentLogger.log(FluentLogger.java:143)
at org.bytemechanics.logger.FluentLogger.trace(FluentLogger.java:191)