From 3b1a96582a5bcb510c0a5eace100c33070f7300a Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 5 Jun 2024 17:14:44 +0200 Subject: [PATCH] Fix crash in gpu memory profiler if resource name is missing #2688 --- 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 915093508..ac91ecd99 100644 --- a/Source/Editor/Windows/Profiler/MemoryGPU.cs +++ b/Source/Editor/Windows/Profiler/MemoryGPU.cs @@ -145,6 +145,8 @@ namespace FlaxEditor.Windows.Profiler #endif Type = gpuResource.ResourceType, }; + if (resource.Name == null) + resource.Name = string.Empty; // Create tooltip sb.Clear();