Red Gate forums :: View topic - NullReferenceException with ScriptSynchronizationActions
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

NullReferenceException with ScriptSynchronizationActions

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
paulh



Joined: 08 Oct 2005
Posts: 31

PostPosted: Fri Apr 03, 2009 4:07 pm    Post subject: NullReferenceException with ScriptSynchronizationActions Reply with quote

My MSBuild task is throwing a NullReferenceException and I can't figure out why...

I'm writing out the messages from the Work object which works fine, but when I do

Code:
            // Retrieve the list of actions to perform to synchronize the database against the scripts folder
            ScriptSynchronizationActions scriptActions = work.ScriptSynchronizationActions;

            // Display the files that will be modified during the synchronization
            this.Log.LogMessage(MessageImportance.High, "Script files that will be modified:");
            foreach (ScriptSynchronizationAction action in scriptActions.SynchronizationActions.Values)
            {
            ...
             }


I get an exception which implies that scriptActions.SynchronizationActions is null.

Any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group