Fix crash due to CrateItem::kind() not handling constructors
#119135
Merged
CrateItem::kind() not handling constructors
#119135