Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

OnErrorCallback null pointer exception with Marshmallow devices #79

Open
bcarrera opened this issue Aug 11, 2016 · 1 comment
Open

OnErrorCallback null pointer exception with Marshmallow devices #79

bcarrera opened this issue Aug 11, 2016 · 1 comment
Labels

Comments

@bcarrera
Copy link

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 pedrovgs added the bug label Sep 14, 2016
@pedrovgs
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants