aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2012-01-27 19:47:24 +0000
committerMelanie2012-01-27 19:47:24 +0000
commit86b9e6fbedf1baa3319f328178e31f8cba6e316c (patch)
tree5232c32a6aa31e0f825d15f4913289218533d247 /OpenSim
parentMerge branch 'master' into careminster (diff)
parentHG Inventoty: Guard against items not found. (diff)
downloadopensim-SC-86b9e6fbedf1baa3319f328178e31f8cba6e316c.zip
opensim-SC-86b9e6fbedf1baa3319f328178e31f8cba6e316c.tar.gz
opensim-SC-86b9e6fbedf1baa3319f328178e31f8cba6e316c.tar.bz2
opensim-SC-86b9e6fbedf1baa3319f328178e31f8cba6e316c.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Services/HypergridService/HGInventoryService.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Services/HypergridService/HGInventoryService.cs b/OpenSim/Services/HypergridService/HGInventoryService.cs
index daf8c3a..41d5a7a 100644
--- a/OpenSim/Services/HypergridService/HGInventoryService.cs
+++ b/OpenSim/Services/HypergridService/HGInventoryService.cs
@@ -319,13 +319,14 @@ namespace OpenSim.Services.HypergridService
319 public override InventoryItemBase GetItem(InventoryItemBase item) 319 public override InventoryItemBase GetItem(InventoryItemBase item)
320 { 320 {
321 InventoryItemBase it = base.GetItem(item); 321 InventoryItemBase it = base.GetItem(item);
322 if (it != null)
323 {
324 UserAccount user = m_Cache.GetUser(it.CreatorId);
322 325
323 UserAccount user = m_Cache.GetUser(it.CreatorId); 326 // Adjust the creator data
324 327 if (user != null && it != null && (it.CreatorData == null || it.CreatorData == string.Empty))
325 // Adjust the creator data 328 it.CreatorData = m_HomeURL + ";" + user.FirstName + " " + user.LastName;
326 if (user != null && it != null && (it.CreatorData == null || it.CreatorData == string.Empty)) 329 }
327 it.CreatorData = m_HomeURL + ";" + user.FirstName + " " + user.LastName;
328
329 return it; 330 return it;
330 } 331 }
331 332