From fe06f37e6bf7e26f739491ff875b4f3c75f2e2dc Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 29 Sep 2008 10:35:07 +0000 Subject: [PATCH] Mantis #2293 Same fix for the DNE --- .../Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs index 4bd0b455da..2306bcedb2 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueThreadClass.cs @@ -359,6 +359,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine string FormatException(Exception e, Dictionary, KeyValuePair> LineMap) { + if (e.InnerException == null) + return e.ToString(); + string message = "Runtime error:\n" + e.InnerException.StackTrace; string[] lines = message.Split(new char[] {'\n'});