fix bug where opening a library script would fail

bulletsim
Justin Clark-Casey (justincc) 2011-07-08 22:32:19 +01:00
parent 5700c582ba
commit 192bd1057e
1 changed files with 2 additions and 2 deletions

View File

@ -1057,7 +1057,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
InventoryItemBase item = new InventoryItemBase(itemID, agentID);
item = invService.GetItem(item);
if (item.CreatorData != null && item.CreatorData != string.Empty)
if (item != null && item.CreatorData != null && item.CreatorData != string.Empty)
UserManagementModule.AddUser(item.CreatorIdAsUuid, item.CreatorData);
return item;