mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Fix to make [bad] tests happy.
This commit is contained in:
@@ -142,9 +142,9 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
|
||||
if (userProfile != null)
|
||||
{
|
||||
if (userProfile.UserAssetURI == null || userProfile.UserAssetURI == "")
|
||||
if ((userProfile.UserAssetURI == null || userProfile.UserAssetURI == "") && m_commsManager.NetworkServersInfo != null)
|
||||
userProfile.UserAssetURI = m_commsManager.NetworkServersInfo.AssetURL;
|
||||
if (userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "")
|
||||
if ((userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "") && m_commsManager.NetworkServersInfo != null)
|
||||
userProfile.UserInventoryURI = m_commsManager.NetworkServersInfo.InventoryURL;
|
||||
|
||||
return AddToCaches(userProfile);
|
||||
@@ -177,9 +177,9 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(userID);
|
||||
if (userProfile != null)
|
||||
{
|
||||
if (userProfile.UserAssetURI == null || userProfile.UserAssetURI == "")
|
||||
if ((userProfile.UserAssetURI == null || userProfile.UserAssetURI == "") && m_commsManager.NetworkServersInfo != null)
|
||||
userProfile.UserAssetURI = m_commsManager.NetworkServersInfo.AssetURL;
|
||||
if (userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "")
|
||||
if ((userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "") && m_commsManager.NetworkServersInfo != null)
|
||||
userProfile.UserInventoryURI = m_commsManager.NetworkServersInfo.InventoryURL;
|
||||
|
||||
return AddToCaches(userProfile);
|
||||
|
||||
Reference in New Issue
Block a user