Skip to content

Injected properties null when used from subclasses of where they were originally injected. #4

@jondwillis

Description

@jondwillis

Injection seems to fail, resulting in a thrown NullPointerException in the following case:

public abstract class BootstrapActivity extends IckleFragmentActivity {

    @InjectPojo(LogoutService.class)
    protected LogoutService logoutService;

}

...

public class DashboardActivity extends BootstrapActivity {
...
    private void logout() {
        // crash here, when logout() is called by user interaction or any other time.
        logoutService.logout(new Runnable() {
    }
}

Is this by design or is it intentional? Either way, it was unexpected behavior and is limiting my design.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions