Add asset != null check to ODEPrim.MeshAssetReceived instead of throwing exception.

In some cases (such as failure to receive response from asset service), it is possible for a null to be returned from IAssetService.Get(string, object, AssetRetrieved).
integration
Justin Clark-Casey (justincc) 2012-10-30 01:14:48 +00:00
parent 37de965233
commit cccf695327
1 changed files with 1 additions and 1 deletions

View File

@ -3351,7 +3351,7 @@ Console.WriteLine(" JointCreateFixed");
private void MeshAssetReceived(AssetBase asset) private void MeshAssetReceived(AssetBase asset)
{ {
if (asset.Data != null && asset.Data.Length > 0) if (asset != null && asset.Data != null && asset.Data.Length > 0)
{ {
if (!_pbs.SculptEntry) if (!_pbs.SculptEntry)
return; return;