Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding null objects to the scenario #66

Open
sammacbeth opened this issue Jan 29, 2015 · 0 comments
Open

Adding null objects to the scenario #66

sammacbeth opened this issue Jan 29, 2015 · 0 comments
Milestone

Comments

@sammacbeth
Copy link
Member

We should check against null objects being added to the scenario and throw a useful exception. Currently the exception raised - when the null object is injected - does not lead back to the source of the error:

Exception in thread "main" java.lang.NullPointerException
    at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:943)
    at uk.ac.imperial.presage2.core.simulator.RunnableSimulation.initialise(RunnableSimulation.java:301)
    at uk.ac.imperial.presage2.core.simulator.RunnableSimulation.run(RunnableSimulation.java:271)
    at uk.ac.imperial.presage2.core.simulator.RunnableSimulation.main(RunnableSimulation.java:164)
@sammacbeth sammacbeth modified the milestones: 0.4.2, 0.4.1 Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant