diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLManager.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs index 223d902..1032145 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs | |||
@@ -446,7 +446,15 @@ namespace OpenSim.Framework.Data.MySQL | |||
446 | 446 | ||
447 | retval.profileImage = new LLUUID((string) reader["profileImage"]); | 447 | retval.profileImage = new LLUUID((string) reader["profileImage"]); |
448 | retval.profileFirstImage = new LLUUID((string) reader["profileFirstImage"]); | 448 | retval.profileFirstImage = new LLUUID((string) reader["profileFirstImage"]); |
449 | retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]); | 449 | |
450 | if( reader.IsDBNull( reader.GetOrdinal( "webLoginKey" ) ) ) | ||
451 | { | ||
452 | retval.webLoginKey = LLUUID.Random(); | ||
453 | } | ||
454 | else | ||
455 | { | ||
456 | retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]); | ||
457 | } | ||
450 | } | 458 | } |
451 | else | 459 | else |
452 | { | 460 | { |