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

NPE in CustomerModelService if model missing from config file #932

Closed
jecollins opened this issue May 15, 2017 · 1 comment
Closed

NPE in CustomerModelService if model missing from config file #932

jecollins opened this issue May 15, 2017 · 1 comment

Comments

@jecollins
Copy link
Member

The current code fails if not every available model type is configured at startup. It should be possible to omit model types for a particular config. Here's the NPE when one type is missing from config:

Exception in thread "Thread-6" java.lang.NullPointerException
	at org.powertac.customer.CustomerModelService.initialize(CustomerModelService.java:116)
	at org.powertac.server.CompetitionControlService.configurePlugins(CompetitionControlService.java:660)
       ...
@jecollins
Copy link
Member Author

Ensure that null cannot be returned in this case, added test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant