From 80c7addb9d745fa4f5029bf95d08c982168ef656 Mon Sep 17 00:00:00 2001 From: Starmapo Date: Thu, 22 Aug 2024 15:42:40 -0400 Subject: [PATCH] Fix `RTTI.getClassProperties()` crashing when there is no `classInfo` --- haxe/ui/util/RTTI.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/haxe/ui/util/RTTI.hx b/haxe/ui/util/RTTI.hx index 458b9e059..ad6c1d711 100644 --- a/haxe/ui/util/RTTI.hx +++ b/haxe/ui/util/RTTI.hx @@ -137,6 +137,10 @@ class RTTI { return _allPropertiesCache.get(cacheKey); } + if (classInfo == null) { + return null; + } + var entry = classInfo.get(className); var properties = null; if (entry != null) {