File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
rxjava2debug/src/main/java/com/akaita/java/rxjava2debug Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ Example (pointing to my own faulty code in `com.akaita.fgas.activities.TopActivi
142142``` java
143143FATAL EXCEPTION : main
144144Process : com. akaita. fgas. debug, PID : 22538
145- java.lang. Throwable : caused by java.lang . NullPointerException : The mapper function returned a null value.
145+ java.lang. Throwable : The mapper function returned a null value.
146146 at io.reactivex.internal.functions. ObjectHelper . requireNonNull(ObjectHelper . java: 39 )
147147 at io.reactivex.internal.operators.observable. ObservableMap $MapObserver . onNext(ObservableMap . java: 59 )
148148 at hu.akarnokd.rxjava2.debug. ObservableOnAssembly $OnAssemblyObserver . onNext(ObservableOnAssembly . java: 55 )
@@ -162,7 +162,7 @@ java.lang.Throwable: caused by java.lang.NullPointerException: The mapper functi
162162 at java.util.concurrent. ThreadPoolExecutor . runWorker(ThreadPoolExecutor . java: 1133 )
163163 at java.util.concurrent. ThreadPoolExecutor $Worker . run(ThreadPoolExecutor . java: 607 )
164164 at java.lang. Thread . run(Thread . java: 761 )
165- Caused by: java.lang. Throwable
165+ Caused by: caused by java.lang. NullPointerException : The mapper function returned a null value.
166166 at io.reactivex.internal.functions. ObjectHelper . requireNonNull(ObjectHelper . java: 39 )
167167 at com.akaita.fgas.activities. TopActivity . onResume(TopActivity . java: 205 )
168168 at android.app. Instrumentation . callActivityOnResume(Instrumentation . java: 1269 )
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ private static Throwable reverseAndCollapseCauses(@NonNull List<Throwable> cause
5151
5252 Throwable topThrowable = null ;
5353 for (int i = causes .size () - 1 ; i >= 0 ; i --) {
54- if (i > 0 ) {
55- topThrowable = new Throwable (causes .get (i ).getMessage (), topThrowable );
56- } else {
54+ if (i == causes .size () - 1 ) {
5755 topThrowable = new Throwable (topMessage , topThrowable );
56+ } else {
57+ topThrowable = new Throwable (causes .get (i ).getMessage (), topThrowable );
5858 }
5959
6060 if (causes .get (i ).getStackTrace () != null ) {
You can’t perform that action at this time.
0 commit comments