Hi guys,
Thanks for the awesome toolkit. I am attempting to write a BugZilla to TFS WIT migration module based on it. During testing I noticed a null reference exception being thrown from the toolkit module. I tracked it down to this method:
private void FireEvent(
EventHandler<MigrationSessionEventArgs> handler,
string description)
{
if (handler != null)
{
MigrationSessionEventArgs args = new MigrationSessionEventArgs(
description,
m_syncProcess.Stats.ItemsSynchronized,
m_syncProcess.Stats.ItemsFailed);
handler(this, args);
}
}
It appears that the syncProcess has not been initialized when I am hitting it. The property SyncProcess checks the private member for null and initializes if it needs to.. so I have worked around the issue by changing the above lines to "this.SyncProcess", but I am curious if maybe I am doing something incorrectly in my module that is causing this problem. At what point should the syncProcess get initialized and is it my modules responsibility to do so?
No files are attached