From 806f48d81a4d47779aef217ace2e141b590055ed Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 17 Aug 2009 17:00:27 -0700 Subject: [PATCH] Added one conditional missing on login, for creating inventory if it doesn't exist already. This hopefully fixes the master avatar problems on standalone. --- .../Communications/Services/LoginService.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs index 8a8108b76b..cac6616932 100644 --- a/OpenSim/Framework/Communications/Services/LoginService.cs +++ b/OpenSim/Framework/Communications/Services/LoginService.cs @@ -1131,7 +1131,18 @@ namespace OpenSim.Framework.Communications.Services // tools are creating the user profile directly in the database without creating the inventory. At // this time we'll accomodate them by lazily creating the user inventory now if it doesn't already // exist. - if ((m_interInventoryService != null) && !m_interInventoryService.CreateNewUserInventory(userID)) + if (m_interInventoryService != null) + { + if (!m_interInventoryService.CreateNewUserInventory(userID)) + { + throw new Exception( + String.Format( + "The inventory creation request for user {0} did not succeed." + + " Please contact your inventory service provider for more information.", + userID)); + } + } + else if ((m_InventoryService != null) && !m_InventoryService.CreateUserInventory(userID)) { throw new Exception( String.Format( @@ -1140,6 +1151,7 @@ namespace OpenSim.Framework.Communications.Services userID)); } + m_log.InfoFormat("[LOGIN]: A new inventory skeleton was successfully created for user {0}", userID); if (m_InventoryService != null)