Skip to content

Commit

Permalink
Added a null check for getting asset from AssetService
Browse files Browse the repository at this point in the history
  • Loading branch information
pallarim committed Nov 12, 2010
1 parent 4317fe2 commit 8d6192f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenSim/Services/AssetService/AssetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public AssetMetadata GetMetadata(string id)
return null;

AssetBase asset = m_Database.GetAsset(assetID);
if (asset == null)
return null;
return asset.Metadata;
}

Expand Down

0 comments on commit 8d6192f

Please sign in to comment.