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

Fixes for Get Thermostat List #1

Open
wants to merge 2 commits into
base: alpha
Choose a base branch
from

Conversation

mrnohr
Copy link

@mrnohr mrnohr commented Feb 27, 2018

There is a case in the getThermostatList() method where you would get a NullPointerException. This happened during the install flow when trying to set the state.data[dni]. state.data gets setup in the initialize() method, which has not been called when building the page.

Since you call getThermostatList() again during initialize(), I just stop writing to state when building the page.

@mrnohr mrnohr changed the base branch from master to alpha February 28, 2018 13:55
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

Successfully merging this pull request may close these issues.

None yet

1 participant