mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
More exception checks and crash hints
If no scriptengine is specified then don't try to load any.
This commit is contained in:
@@ -50,8 +50,12 @@ namespace OpenSim.Framework.Statistics
|
||||
|
||||
public void AddTexture(AssetBase image)
|
||||
{
|
||||
texturesInCache++;
|
||||
textureCacheMemoryUsage += image.Data.Length;
|
||||
// Tedd: I added null check to avoid exception. Don't know if texturesInCache should ++ anyway?
|
||||
if (image.Data != null)
|
||||
{
|
||||
texturesInCache++;
|
||||
textureCacheMemoryUsage += image.Data.Length;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user