1 vote
closed
WorkItemTrackingSession

Description

 
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?

File Attachments


No files are attached


Closed Nov 10 2009 at 11:32 PM  by mmitrik

Closing the issues that were opened against the previous Migration Toolkit and TFS to TFS migration tool. New issues should be directed to the TFS Integration forum: http://social.msdn.microsoft.com/Forums/en-US/tfsintegration/threads

or Microsoft Connect: http://connect.microsoft.com/visualstudio


Comments

most recent at top (show oldest at top)
abaturytski wrote Nov 8 2007 at 6:36 PM
Hi,

this is a known issue that will be fixed in the next release. The fix consists of two parts:

1. Move FireEvent(SessionStart, MigrationToolkitResources.SessionStarting call) right after initializing m_syncProcess member in Synchronize, SynchronizeFull and ProcessDeferredLinks method
2. Move FireEvent(SessionAborted,...) in AbortImpl method right under m_syncProcess.Abort() call.

Alex

Updating...
© 2006-2010 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.1.12.16187