Skip to content

Commit

Permalink
Merge pull request #623 from Starmapo/fix-rtti-crash
Browse files Browse the repository at this point in the history
Fix `RTTI.getClassProperties()` crashing when there is no `classInfo`
  • Loading branch information
ianharrigan committed Aug 23, 2024
2 parents 23b4a17 + 80c7add commit 5c66a50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions haxe/ui/util/RTTI.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5c66a50

Please sign in to comment.