Guard HGAssetService against uninitialized variables and null arguments.
parent
2a654974c9
commit
8ba0cc470a
|
@ -129,6 +129,9 @@ namespace OpenSim.Services.HypergridService
|
||||||
|
|
||||||
protected void AdjustIdentifiers(AssetMetadata meta)
|
protected void AdjustIdentifiers(AssetMetadata meta)
|
||||||
{
|
{
|
||||||
|
if (meta == null || m_Cache == null)
|
||||||
|
return;
|
||||||
|
|
||||||
UserAccount creator = m_Cache.GetUser(meta.CreatorID);
|
UserAccount creator = m_Cache.GetUser(meta.CreatorID);
|
||||||
if (creator != null)
|
if (creator != null)
|
||||||
meta.CreatorID = m_ProfileServiceURL + "/" + meta.CreatorID + ";" + creator.FirstName + " " + creator.LastName;
|
meta.CreatorID = m_ProfileServiceURL + "/" + meta.CreatorID + ";" + creator.FirstName + " " + creator.LastName;
|
||||||
|
|
Loading…
Reference in New Issue