Bug in default values in preferences in ide

Anyone else seen this?
I added some configuration params to a device type ie timeout etc.
Worked fine till I added a new device of that type;…
On initial adding it would cause an error in the app and in the ide log due to the value being null in the configure function even though I have a default value in the preferences.

What good are the defaults?

I had to add code in the function

if (settings.ReportTime == null)
settings.ReportTime = 5
if (settings.WattageChange == null)
settings.WattageChnage = 10;

This bug’s been there for months, way before V2 was released. They say “it’s fixed”, but it never was. We should call it “feature” now, I guess.

1 Like