Skip to content

Commit

Permalink
Fix RTTI.getClassProperties() crashing when there is no classInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Starmapo committed Aug 22, 2024
1 parent 23b4a17 commit 80c7add
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 80c7add

Please sign in to comment.