anroots/SIP-Agent — comment on commit 62cf3faf84a056175cf141c7eefc101f026aaecc
File: SIP Agent/Model/Log.cs	 line 34
By anroots:

The construction of a new instance of the Log model is forbidden by design. That's because the Log model should only ever have 1 instance at a time. The current instance is accessed using the Instance property so instead of doing

new Model.Log().FindAll() one would use the static property
Model.Log.Instance.FindAll()

Spent an hour debugging NullReferenceException until I remembered this commit. Changed the corresponding line in SystemStandby to this:

dataGridLogs.ItemsSource = Model.Log.Instance.FindAll();

and re-enforced the singleton behaviour of the Log model.