当我们谈论日志时,Lambda表达式易于编写,易于阅读但很难找到。
我在Fabric Crashlytics中获得了下一个堆栈跟踪(我可以在Android Monitor中看到这样的错误)。问题是,是否有一些方便的方法在课堂上找到这个“Lambda #7
”?
Non-fatal Exception: java.lang.NullPointerException: The mapper function returned a null value.
at io.reactivex.internal.functions.a.a(ObjectHelper.java:39)
at io.reactivex.internal.operators.observable.ay$a.onNext(ObservableMap.java:59)
...
at java.lang.Thread.run(Thread.java:761)
---> at com.myapp.MyClass$$Lambda$7.accept(Unknown Source)
at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
at io.reactivex.internal.observers.BasicFuseableObserver.onError(BasicFuseableObserver.java:100)
at io.reactivex.internal.observers.BasicFuseableObserver.fail(BasicFuseableObserver.java:110)
at io.reactivex.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:61)
at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:67)
at io.objectbox.rx.RxQuery$4$1.onData(RxQuery.java:95)
at io.objectbox.rx.RxQuery$4$1.onData(RxQuery.java:91)
at io.objectbox.query.QueryPublisher$2.run(QueryPublisher.java:68)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)