Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0b15319 authored by Dimitry Ivanov's avatar Dimitry Ivanov
Browse files

nativeloader: Ignore empty java_permitted_path

Passing empty permitted path should result in no-op.
This addresses review comment on CL with commit
f334cbf0

Bug: http://b/28639227
Change-Id: I4a4540e522e90a145a374939921932c86f35e88d
parent f334cbf0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -78,8 +78,10 @@ class LibraryNamespaces {

    if (java_permitted_path != nullptr) {
      ScopedUtfChars path(env, java_permitted_path);
      if (path.c_str() != nullptr && path.size() > 0) {
        permitted_path = permitted_path + ":" + path.c_str();
      }
    }

    if (!initialized_ && !InitPublicNamespace(library_path.c_str(), target_sdk_version)) {
      return nullptr;