Fix more potential nullrefs
parent
571becefb6
commit
4a54b3318b
|
@ -601,8 +601,10 @@ namespace OpenSim.Server.Handlers.Asset
|
||||||
ret["AssetType"] = item.AssetType.ToString();
|
ret["AssetType"] = item.AssetType.ToString();
|
||||||
ret["BasePermissions"] = item.BasePermissions.ToString();
|
ret["BasePermissions"] = item.BasePermissions.ToString();
|
||||||
ret["CreationDate"] = item.CreationDate.ToString();
|
ret["CreationDate"] = item.CreationDate.ToString();
|
||||||
ret["CreatorId"] = item.CreatorId.ToString();
|
if (item.CreatorId != null)
|
||||||
ret["CreatorData"] = item.CreatorData.ToString();
|
ret["CreatorId"] = item.CreatorId.ToString();
|
||||||
|
else
|
||||||
|
ret["CreatorId"] = String.Empty;
|
||||||
ret["CurrentPermissions"] = item.CurrentPermissions.ToString();
|
ret["CurrentPermissions"] = item.CurrentPermissions.ToString();
|
||||||
ret["Description"] = item.Description.ToString();
|
ret["Description"] = item.Description.ToString();
|
||||||
ret["EveryOnePermissions"] = item.EveryOnePermissions.ToString();
|
ret["EveryOnePermissions"] = item.EveryOnePermissions.ToString();
|
||||||
|
|
Loading…
Reference in New Issue