From 60207f670f94b1a0f1f64ab1aa7ac4d5de7a999d Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 5 Jul 2010 03:36:26 -0700 Subject: [PATCH] One more buglet fixed related to mantis #4841 -- auto-returns were still chocking on a null pointer exception. --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 56d8a78235..2ccb5dd58c 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -1597,7 +1597,7 @@ namespace OpenSim.Region.Framework.Scenes } // Handle god perms - if (Permissions.IsGod(remoteClient.AgentId)) + if ((remoteClient != null) && Permissions.IsGod(remoteClient.AgentId)) { permissionToTake = true; permissionToTakeCopy = true;