Bug in Database.SaveToDisk

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

Bug in Database.SaveToDisk

Postby jeffreydp » Thu Mar 20, 2008 12:16 pm

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
jeffreydp
 
Posts: 5
Joined: Tue Mar 11, 2008 5:21 pm

Postby Brian Donahue » Fri Mar 21, 2008 8: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: 6670
Joined: Mon Aug 23, 2004 10:48 am

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

Hi Brian,

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


Return to SQL Toolkit Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests