Bug in Database.SaveToDisk

Forum for users of SQL Toolkit 3,4,and 5

Bug in Database.SaveToDisk

Postby jeffreydp » Thu Mar 20, 2008 11:16 am

There's a small bug in the SaveToDisk function.

If the password on the ConnectionProperties of the Database object is set to null, the SaveToDisk method fails with the following exception:

String reference not set to an instance of a String.
Parameter name: s
Posts: 5
Joined: Tue Mar 11, 2008 4:21 pm

Postby Brian Donahue » Fri Mar 21, 2008 7:00 pm

Hi Jeffrey,

Thanks for pointing this out. As a workaround, have you tried setting the password to String.Empty? That normally stops null-reference exceptions on strings that you don't want to specify a value for, in my experience.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Postby jeffreydp » Tue Mar 25, 2008 8:52 am

Hi Brian,

Thanks for mentioning the workaround, I should have done so in my initial post.
Posts: 5
Joined: Tue Mar 11, 2008 4:21 pm

Return to SQL Toolkit Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests