Skip to content

Commit

Permalink
Add check for nil nativeToJS bridge
Browse files Browse the repository at this point in the history
Reviewed By: mhorowitz

Differential Revision: D3980922

fbshipit-source-id: ba8ba283cd186a28cd9d5c1c35d4828829864a6a
  • Loading branch information
javache authored and Facebook Github Bot committed Oct 7, 2016
1 parent 1c23b70 commit 5200ac1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ReactCommon/cxxreact/Instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Instance {
// This method is experimental, and may be modified or removed.
template <typename T>
Value callFunctionSync(const std::string& module, const std::string& method, T&& args) {
CHECK(nativeToJsBridge_);
return nativeToJsBridge_->callFunctionSync(module, method, std::forward<T>(args));
}

Expand Down

0 comments on commit 5200ac1

Please sign in to comment.