From d2f2ec12fd3a41aa0b58716f59c950eeaf7b75ab Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 24 Aug 2008 18:32:39 +0000 Subject: Mantis#2027. Thank you kindly, HomerHorwitz for a patch that addresses: Analysis shows that the XMLRPC-request contains an empty string () for the custom_type parameter, which is deserialized wrongly to a null-value, thus leading to the exception above. The attached patch (against r5967) fixes the symptom and uses "" for customType in that case. --- OpenSim/Data/MySQL/MySQLManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Data/MySQL') diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs index c9a0498..d193c72 100644 --- a/OpenSim/Data/MySQL/MySQLManager.cs +++ b/OpenSim/Data/MySQL/MySQLManager.cs @@ -902,7 +902,7 @@ namespace OpenSim.Data.MySQL parameters["?webLoginKey"] = webLoginKey.ToString(); parameters["?userFlags"] = userFlags.ToString(); parameters["?godLevel"] = godLevel.ToString(); - parameters["?customType"] = customType.ToString(); + parameters["?customType"] = customType == null ? "" : customType.ToString(); parameters["?partner"] = partner.ToString(); bool returnval = false; -- cgit v1.1