diff --git a/ReactCommon/jschelpers/JSCWrapper.cpp b/ReactCommon/jschelpers/JSCWrapper.cpp index d0354376139..27942a5b06f 100644 --- a/ReactCommon/jschelpers/JSCWrapper.cpp +++ b/ReactCommon/jschelpers/JSCWrapper.cpp @@ -60,6 +60,7 @@ const JSCWrapper* customJSCWrapper() { void setCustomJSCWrapper(const JSCWrapper* wrapper) { #if USE_GLOG + CHECK(wrapper != nullptr) << "Can't set null wrapper"; CHECK(s_customWrapper == nullptr) << "Can't set custom JSC wrapper multiple times"; #endif s_customWrapper = wrapper;