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

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

@daj

Description

@daj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions