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

Fixes crash when not specifying a @WithModule annotation with the ScreenScoper#150

Merged
rjrjr merged 2 commits into
square:masterfrom
Syhids:master
May 2, 2015
Merged

Fixes crash when not specifying a @WithModule annotation with the ScreenScoper#150
rjrjr merged 2 commits into
square:masterfrom
Syhids:master

Conversation

@Syhids

@Syhids Syhids commented Apr 28, 2015

Copy link
Copy Markdown
Contributor

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

rjrjr commented May 2, 2015

Copy link
Copy Markdown
Contributor

Nice, thanks. Can you sign our CLA so I can merge the fix?

https://github.com/square/mortar/blob/master/CONTRIBUTING.md

@Syhids

Syhids commented May 2, 2015

Copy link
Copy Markdown
Contributor Author

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