From c5332b1d7a354a48de0f8d83663c7a3eddbde18a Mon Sep 17 00:00:00 2001 From: MaxStgs Date: Mon, 3 May 2021 19:54:03 +0500 Subject: [PATCH] Check PHashTranslation generate p_from is valid (cherry picked from commit 0bb40df4bb65e2c784f29baf4e98d7bf84233804) --- core/compressed_translation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/compressed_translation.cpp b/core/compressed_translation.cpp index 19851c4fad8..9085802d56c 100644 --- a/core/compressed_translation.cpp +++ b/core/compressed_translation.cpp @@ -45,6 +45,7 @@ struct _PHashTranslationCmp { void PHashTranslation::generate(const Ref &p_from) { #ifdef TOOLS_ENABLED + ERR_FAIL_COND(p_from.is_null()); List keys; p_from->get_message_list(&keys);