From a013c3dd043c0df3a6621d57398ee31e47a91a34 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 11 Oct 2021 14:05:20 +0200 Subject: [PATCH] Fix possible crash in ReadOutputLogs #646 --- Source/Editor/Managed/ManagedEditor.Internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Managed/ManagedEditor.Internal.cpp b/Source/Editor/Managed/ManagedEditor.Internal.cpp index 8fff3f2f8..abe5ace18 100644 --- a/Source/Editor/Managed/ManagedEditor.Internal.cpp +++ b/Source/Editor/Managed/ManagedEditor.Internal.cpp @@ -388,7 +388,7 @@ public: { ScopeLock lock(CachedLogDataLocker); - if (CachedLogData.IsEmpty()) + if (CachedLogData.IsEmpty() || CachedLogData.Get() == nullptr) return 0; int32 count = 0;