From e8ba3d3a101a8b797021a9915b02c1bbfdf33448 Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 7 Feb 2011 22:25:43 +0100 Subject: Prevent a nonexistent inventory item from throwing an exception --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 59e905e..cdaaab3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -4195,7 +4195,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (!found) { llSay(0, String.Format("Could not find object '{0}'", inventory)); - throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory)); + return; +// throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory)); } // check if destination is an object -- cgit v1.1