aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
-rw-r--r--OpenSim/Services/AssetService/AssetService.cs10
3 files changed, 18 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 42ce61e..962e5e1 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3310,7 +3310,11 @@ namespace OpenSim.Region.Framework.Scenes
3310 } 3310 }
3311 deleteIDs.Add(localID); 3311 deleteIDs.Add(localID);
3312 } 3312 }
3313 ForEachClient(delegate(IClientAPI client) { client.SendKillObject(m_regionHandle, deleteIDs); }); 3313
3314 ForEachClient(delegate(IClientAPI client)
3315 {
3316 client.SendKillObject(m_regionHandle, deleteIDs);
3317 });
3314 } 3318 }
3315 3319
3316 #endregion 3320 #endregion
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 0e29b60..eb3597d 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -774,7 +774,10 @@ namespace OpenSim.Region.Framework.Scenes
774 m_localId = m_scene.AllocateLocalId(); 774 m_localId = m_scene.AllocateLocalId();
775 775
776 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid); 776 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid);
777 m_userFlags = account.UserFlags; 777 if (account != null)
778 m_userFlags = account.UserFlags;
779 else
780 m_userFlags = 0;
778 781
779 if (account != null) 782 if (account != null)
780 UserLevel = account.UserLevel; 783 UserLevel = account.UserLevel;
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs
index 0feb59d..ec424c0 100644
--- a/OpenSim/Services/AssetService/AssetService.cs
+++ b/OpenSim/Services/AssetService/AssetService.cs
@@ -117,7 +117,15 @@ namespace OpenSim.Services.AssetService
117 return null; 117 return null;
118 } 118 }
119 119
120 return m_Database.GetAsset(assetID); 120 try
121 {
122 return m_Database.GetAsset(assetID);
123 }
124 catch (Exception e)
125 {
126 m_log.ErrorFormat("[ASSET SERVICE]: Exception getting asset {0} {1}", assetID, e);
127 return null;
128 }
121 } 129 }
122 130
123 public virtual AssetBase GetCached(string id) 131 public virtual AssetBase GetCached(string id)