Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Conversation

@Syhids
Copy link
Contributor

@Syhids Syhids commented Apr 28, 2015

When loading a screen without a module annotation, this crash happens:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
            at dagger.internal.Modules.loadModules(Modules.java:43)
            at dagger.ObjectGraph$DaggerObjectGraph.makeGraph(ObjectGraph.java:174)
            at dagger.ObjectGraph$DaggerObjectGraph.plus(ObjectGraph.java:204)
            at mortar.dagger1support.ObjectGraphService.create(ObjectGraphService.java:26)
            at [***].ScreenScoper.getScreenScope(ScreenScoper.java:55)

Syhids and others added 2 commits April 20, 2015 11:52
When loading a screen without a module annotation, this crash happens: 
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
            at dagger.internal.Modules.loadModules(Modules.java:43)
            at dagger.ObjectGraph$DaggerObjectGraph.makeGraph(ObjectGraph.java:174)
            at dagger.ObjectGraph$DaggerObjectGraph.plus(ObjectGraph.java:204)
            at mortar.dagger1support.ObjectGraphService.create(ObjectGraphService.java:26)
            at eu.yesweapp.skeleton.mortarflow.screen.ScreenScoper.getScreenScope(ScreenScoper.java:55)
@rjrjr
Copy link
Contributor

rjrjr commented May 2, 2015

@Syhids
Copy link
Contributor Author

Syhids commented May 2, 2015

Done, thanks Ray!

rjrjr added a commit that referenced this pull request May 2, 2015
Fixes crash when not specifying a @WithModule annotation with the ScreenScoper
@rjrjr rjrjr merged commit 9e105f5 into square:master May 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants