diff --git a/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp b/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp index e4cee80023fc..78eccf35f907 100644 --- a/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp @@ -255,6 +255,12 @@ void ReactInstance::callFunctionOnModule( const std::string& moduleName, const std::string& methodName, folly::dynamic&& args) { + if (bufferedRuntimeExecutor_ == nullptr) { + LOG(ERROR) + << "Calling callFunctionOnModule with null BufferedRuntimeExecutor"; + return; + } + bufferedRuntimeExecutor_->execute([this, moduleName = moduleName, methodName = methodName,