Skip to content

Commit

Permalink
Skip over configured methods that don't exist
Browse files Browse the repository at this point in the history
Summary: Make it easier to configure the pass and roll out changes to the app source code independently.

Reviewed By: thezhangwei

Differential Revision: D63579884

fbshipit-source-id: 7ab7d1dbd1767afcd52f90973fbc64c805916b72
  • Loading branch information
wsanville authored and facebook-github-bot committed Sep 30, 2024
1 parent ff97055 commit 8e3b865
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opt/wrapped-primitives/WrappedPrimitivesPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ void WrappedPrimitivesPass::bind_config() {
auto api = members.at(0);
TRACE(WP, 2, "Checking for API '%s'", api.c_str());
auto wrapped_api = DexMethod::get_method(api);
always_assert_log(wrapped_api != nullptr, "Method %s does not exist",
api.c_str());
if (wrapped_api == nullptr) {
continue;
}
std::string unwrapped_api_desc;
JsonWrapper jobj = JsonWrapper(obj);
jobj.get(api.c_str(), "", unwrapped_api_desc);
Expand Down

0 comments on commit 8e3b865

Please sign in to comment.