Karumi / Rosie

Rosie is an Android framework to create applications following the principles of Clean Architecture.
Other
1.82k stars 157 forks source link

OnErrorCallback null pointer exception with Marshmallow devices #79

Open bcarrera opened 8 years ago

bcarrera commented 8 years ago

Every time I call the method notifyError(new Error("Error")) in a UseCase class I'm getting a null pointer exception. It seems that when I create the " .onError(new OnErrorCallback() {...}" in the presenter something goes wrong."I have tried with two different devices using Marshmallow version and in both cases the result is:

java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.karumi.rosie.domain.usecase.error.OnErrorCallback.onError(java.lang.Error)' on a null object reference at com.karumi.rosie.domain.usecase.RosieUseCase.notifyError(RosieUseCase.java:77)

Versions under Marshmallow works perfectly. Any tip about what is causing this error?

Thanks in advance

pedrovgs commented 8 years ago

Hi @bcarrera thank you so much for your issue. We'll take a look :)