android10 / frodo

Android Library for Logging RxJava Observables and Subscribers.
1.48k stars 101 forks source link

NPE when using RxLogObservable #27

Closed ZacSweers closed 8 years ago

ZacSweers commented 8 years ago

I always get this exception when using it:

java.lang.NullPointerException: Attempt to invoke interface method 'com.fernandocejas.frodo.annotation.RxLogObservable$Scope com.fernandocejas.frodo.annotation.RxLogObservable.value()' on a null object reference
                                                                           at com.fernandocejas.frodo.aspect.LogObservable.methodAnnotatedWithRxLogObservable(LogObservable.java:27)

Method looks like this:

@RxLogObservable
public Observable<Stories> getStories() {
    return myService.getStories();
}
android10 commented 8 years ago

Thanks for reporting. This is related to #11 and should be fixed within the next version coming up next week. Here is the change set: https://github.com/android10/frodo/commit/9112c07ad78346865f787c70c17c7b43f904f3eb

ZacSweers commented 8 years ago

Ah cool, in that case I'll close this then and look forward to the release. Thanks!

ZacSweers commented 8 years ago

Any update?