diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 2c8f45b02d6..bdbf51022dd 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -4301,6 +4301,14 @@ YOGA_EXPORT void YGConfigSetExperimentalFeatureEnabled( YOGA_EXPORT bool YGConfigIsExperimentalFeatureEnabled( const YGConfigRef config, const YGExperimentalFeature feature) { + // S323291 + T145030974 + T145292944: Node config should never be null, but + // Yoga has a private API used by RN to set config which does not check, and + // we crash here where config is null. Add a null check as temporary + // remediation + if (config == nullptr) { + return false; + } + return config->experimentalFeatures[feature]; }