aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-11 16:32:31 +0000
committerMelanie Thielker2008-10-11 16:32:31 +0000
commit44b2ecf29db58bfdc3ecf0682cec9fc6e94dd4ee (patch)
treef222a1c831a4a40bfc81df721681da95c0a96c60 /OpenSim
parentFix Nebadon's WP crash (invalid root part from database null-ref) (diff)
downloadopensim-SC-44b2ecf29db58bfdc3ecf0682cec9fc6e94dd4ee.zip
opensim-SC-44b2ecf29db58bfdc3ecf0682cec9fc6e94dd4ee.tar.gz
opensim-SC-44b2ecf29db58bfdc3ecf0682cec9fc6e94dd4ee.tar.bz2
opensim-SC-44b2ecf29db58bfdc3ecf0682cec9fc6e94dd4ee.tar.xz
2nd stab at that prim loading nasty
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs9
2 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 1dcb174..9e41531 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -249,7 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
249 /// </returns> 249 /// </returns>
250 protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup) 250 protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
251 { 251 {
252 if (sceneObject.RootPart == null) 252 if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == null)
253 return false; 253 return false;
254 254
255 sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim); 255 sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 1d20377..9d07de2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -35,7 +35,7 @@ using System.Reflection;
35using System.Globalization; 35using System.Globalization;
36using System.Xml; 36using System.Xml;
37using OpenMetaverse; 37using OpenMetaverse;
38//using log4net; 38using log4net;
39using Nini.Config; 39using Nini.Config;
40using Amib.Threading; 40using Amib.Threading;
41using OpenSim.Framework; 41using OpenSim.Framework;
@@ -52,7 +52,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
52{ 52{
53 public class ScriptInstance : IScriptInstance 53 public class ScriptInstance : IScriptInstance
54 { 54 {
55 //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 55 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
56 56
57 private IScriptEngine m_Engine; 57 private IScriptEngine m_Engine;
58 private IScriptWorkItem m_CurrentResult = null; 58 private IScriptWorkItem m_CurrentResult = null;
@@ -843,7 +843,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
843 } 843 }
844 } 844 }
845 845
846 return message; 846 m_log.ErrorFormat("Scripting exception:");
847 m_log.ErrorFormat(e.ToString());
848
849 return e.ToString();
847 } 850 }
848 } 851 }
849} 852}