Security Widget and Program

Hi,

the security program always stops updating the widget after a few days of running. The message in the widget is than “No recent activity” and it does not update any more.

The widget calls the Events.List, which can be called via the browser, too:

http://<IP_Adress>/api/HomeAutomation.HomeGenie.Automation/90/Events.List

Once the program stops, the result is

{ ‘ResponseValue’ : 'ERROR: Index was outside the bounds of the array. at System.Collections.Generic.List`1+Enumerator[T].MoveNext () <0x74ec9c44 + 0x00044> in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) <0x6bd16508 + 0x0047f> in :0

Which I think is a result of the following line of code in the Security Program

res = JsonConvert.SerializeObject(history);

Has anybody any idea how to avoid the problem?

Thanks

Best regards
Jens