Bug in Database.SaveToDisk
jeffreydp
Posts: 8
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
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
Comments
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.
Thanks for mentioning the workaround, I should have done so in my initial post.