Comments (4)
This is different than the stacktrace you sent me in the kotlinlang slack. Can you paste that one + repro steps?
from rxdogtag.
Here is the stacktrace... although I don't remember the repro steps which is why I tried to repro with the steps above. I do remember is that I just removed the onError block in my subscription to my retrofit observable.
2019-09-17 17:06:48.787 8147-8147/com.myapp.theapp.beta E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myapp.theapp.beta, PID: 8147
io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:67)
at com.uber.rxdogtag.DogTagObserver.lambda$onNext$3$DogTagObserver(DogTagObserver.java:56)
at com.uber.rxdogtag.-$$Lambda$DogTagObserver$Bul2aJuZ0nriT_735invreaJZFw.run(Unknown Source:4)
at com.uber.rxdogtag.RxDogTag.guardedDelegateCall(RxDogTag.java:221)
at com.uber.rxdogtag.DogTagObserver.onNext(DogTagObserver.java:56)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:201)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at com.myapp.app.ProfileFragment$onViewCreated$1.onClick(ProfileFragment.kt:32)
at [[ ↑↑ Inferred subscribe point ↑↑ ]].(:0)
at [[ Originating callback: onNext ]].(:0)
at [[ ↓↓ Original trace ↓↓ ]].(:0)
at com.myapp.app.ProfileController.buildModels(ProfileFragment.kt:66)
at com.airbnb.epoxy.EpoxyController$1.run(EpoxyController.java:268)
at com.airbnb.epoxy.EpoxyController.requestModelBuild(EpoxyController.java:161)
at com.myapp.app.ProfileFragment$onViewCreated$1$1.accept(ProfileFragment.kt:44)
at com.myapp.app.ProfileFragment$onViewCreated$1$1.accept(ProfileFragment.kt:21)
at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
at com.uber.rxdogtag.DogTagObserver.lambda$onNext$3$DogTagObserver(DogTagObserver.java:56)
at com.uber.rxdogtag.-$$Lambda$DogTagObserver$Bul2aJuZ0nriT_735invreaJZFw.run(Unknown Source:4)
at com.uber.rxdogtag.RxDogTag.guardedDelegateCall(RxDogTag.java:221)
at com.uber.rxdogtag.DogTagObserver.onNext(DogTagObserver.java:56)
at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:201)
at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
from rxdogtag.
Ok, without a repro case there's not much we can do. Feel free to post with repro steps if you see it again
from rxdogtag.
Not sure what the actual issue is, I just reported it because you asked me to. Sorry about that @ZacSweers /shruggie
from rxdogtag.
Related Issues (20)
- Check performance of guarded delegate calls HOT 3
- CompositeException example HOT 4
- Add an opt-in to call onError anyway HOT 1
- Repackage existing OnErrorNotImplementedExceptions by default, add config to disable
- Document current benchmark results in a wiki page HOT 2
- ANR in 0.2.0 HOT 3
- Integrate MkDocs for documentation
- Update benchmark dataparsers to output in a way that can be pasted to benchmark.md
- Error: "... only supported starting with Android N... " HOT 4
- 1.0 Proposal HOT 2
- Version 2.0.0 Tracking Issue HOT 1
- Markdown Docs Broken HOT 2
- Snapshots are broken HOT 2
- R8 inlines RxDogTag (the class) entirely, breaking some of its assumptions about call stacks HOT 5
- Add performance impact stats to README HOT 1
- Add support for onError handler HOT 13
- Common crash report for all crashes - Rx v3.0.4 + RxDogTag v2.0.1 HOT 1
- How can I make a jar file of this Project? HOT 1
- Issue with Proguard and AGP 7.0.2 (RxDogTag 1.0.1) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxdogtag.