You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to D_.getinstance is already the Instance of the main Application.
Therefore injecting @App results in the Application object being null since the context instanceof Activity check fails.
There should be another if case where context instanceof MyApplication is checked to prevent this.
When injecting a DEFAULT scoped Bean (D) in a SINGLETON scoped bean (S), the Context passed to
D_.getinstanceis already the Instance of the main Application.Therefore injecting
@Appresults in the Application object beingnullsince thecontext instanceof Activitycheck fails.There should be another if case where
context instanceof MyApplicationis checked to prevent this.AndroidAnnotations Version is 2.7