Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

NullPointerException on "Post events" from a subscribed method #22

Open
daj opened this issue Sep 9, 2015 · 0 comments
Open

NullPointerException on "Post events" from a subscribed method #22

daj opened this issue Sep 9, 2015 · 0 comments

Comments

@daj
Copy link

daj commented Sep 9, 2015

The Otto icon works fine to jump from a posted event back to its subscribed method, e.g. touching the Otto icon here

bus.post(new AuthenticationEvent.LogoutRequest());

jumps to this method fine

@Subscribe

public void logout(AuthenticationEvent.LogoutRequest event) {

    // My code, blah blah blah
}


However, when I press the Otto icon for the @Subscribe method, then choose "Post events", it shows "No usages found in Project or Libraries", and the Event log shows "NullPointerException: null", and I see an IDE error.

screen shot 2015-09-09 at 12 28 33 pm

I'm using a pretty recent version of Android Studio:

screen shot 2015-09-09 at 12 37 08 pm

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

No branches or pull requests

1 participant