From eadb4411ffd53290814657bfaa009695f4c45982 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 12 Jun 2025 17:35:02 +0200 Subject: [PATCH] Fix crash in GPU Memory profiler if resource went null --- Source/Editor/Windows/Profiler/MemoryGPU.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/Windows/Profiler/MemoryGPU.cs b/Source/Editor/Windows/Profiler/MemoryGPU.cs index ce266777d..74f14b584 100644 --- a/Source/Editor/Windows/Profiler/MemoryGPU.cs +++ b/Source/Editor/Windows/Profiler/MemoryGPU.cs @@ -146,6 +146,8 @@ namespace FlaxEditor.Windows.Profiler { var gpuResource = _gpuResourcesCached[i]; ref var resource = ref resources[i]; + if (!gpuResource) + continue; // Try to reuse cached resource info var gpuResourceId = gpuResource.ID;