aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorCharles Krinke2008-08-24 18:32:39 +0000
committerCharles Krinke2008-08-24 18:32:39 +0000
commitd2f2ec12fd3a41aa0b58716f59c950eeaf7b75ab (patch)
treeac570b5bc0ca60c977d663054067966dd8830d1a /OpenSim
parentCompleting the item sale series, this one implements sell contents. (diff)
downloadopensim-SC_OLD-d2f2ec12fd3a41aa0b58716f59c950eeaf7b75ab.zip
opensim-SC_OLD-d2f2ec12fd3a41aa0b58716f59c950eeaf7b75ab.tar.gz
opensim-SC_OLD-d2f2ec12fd3a41aa0b58716f59c950eeaf7b75ab.tar.bz2
opensim-SC_OLD-d2f2ec12fd3a41aa0b58716f59c950eeaf7b75ab.tar.xz
Mantis#2027. Thank you kindly, HomerHorwitz for a patch that addresses:
Analysis shows that the XMLRPC-request contains an empty string (<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.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLManager.cs2
1 files changed, 1 insertions, 1 deletions
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
902 parameters["?webLoginKey"] = webLoginKey.ToString(); 902 parameters["?webLoginKey"] = webLoginKey.ToString();
903 parameters["?userFlags"] = userFlags.ToString(); 903 parameters["?userFlags"] = userFlags.ToString();
904 parameters["?godLevel"] = godLevel.ToString(); 904 parameters["?godLevel"] = godLevel.ToString();
905 parameters["?customType"] = customType.ToString(); 905 parameters["?customType"] = customType == null ? "" : customType.ToString();
906 parameters["?partner"] = partner.ToString(); 906 parameters["?partner"] = partner.ToString();
907 907
908 bool returnval = false; 908 bool returnval = false;