Closed olemr closed 1 year ago
@olemr
It is actually weird: When I look about the code that must have been out by the time you wrote this ticket, the NanoPanelHandler.java did not have a line 263. However, even though the line number does not match I found the following code
` getPanelColor():
String panelID = getThing().getConfiguration().get(NanoleafBindingConstants.CONFIG_PANEL_ID).toString(); if (panelInfo.get(panelID) == null) {`
where panelInfo is a map that was loaded some time before. If for some reason that panel has been added but the controller has not updated from the device it would just not find that in the map.
The current code is different from that it always queries from the controller the values before getting the color.
I would therefore presume that we won't have that problem anymore.
Asked @olemr and it works without any issues today.
Java exception when trying to add 1 of 102 light panels. Any hard coded array sizes perhaps?