diff options
author | Justin Clark-Casey (justincc) | 2011-07-08 22:32:19 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-07-08 22:32:19 +0100 |
commit | 192bd1057e95e504955bebb4cd42a74b9101b6fa (patch) | |
tree | 8e81a7c8e0514629ccfdfe79f3ecb1114fbe4cf5 | |
parent | refactor: rename bool returning GetAgentInventoryItem() to CanGetAgentInvento... (diff) | |
download | opensim-SC-192bd1057e95e504955bebb4cd42a74b9101b6fa.zip opensim-SC-192bd1057e95e504955bebb4cd42a74b9101b6fa.tar.gz opensim-SC-192bd1057e95e504955bebb4cd42a74b9101b6fa.tar.bz2 opensim-SC-192bd1057e95e504955bebb4cd42a74b9101b6fa.tar.xz |
fix bug where opening a library script would fail
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index f7d187d..66fbcb9 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -1057,7 +1057,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
1057 | InventoryItemBase item = new InventoryItemBase(itemID, agentID); | 1057 | InventoryItemBase item = new InventoryItemBase(itemID, agentID); |
1058 | item = invService.GetItem(item); | 1058 | item = invService.GetItem(item); |
1059 | 1059 | ||
1060 | if (item.CreatorData != null && item.CreatorData != string.Empty) | 1060 | if (item != null && item.CreatorData != null && item.CreatorData != string.Empty) |
1061 | UserManagementModule.AddUser(item.CreatorIdAsUuid, item.CreatorData); | 1061 | UserManagementModule.AddUser(item.CreatorIdAsUuid, item.CreatorData); |
1062 | 1062 | ||
1063 | return item; | 1063 | return item; |
@@ -1065,4 +1065,4 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
1065 | 1065 | ||
1066 | #endregion | 1066 | #endregion |
1067 | } | 1067 | } |
1068 | } | 1068 | } \ No newline at end of file |