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

Commit 0fa68d09 authored by Dimitry Ivanov's avatar Dimitry Ivanov Committed by android-build-merger
Browse files

nativeloader: Fix the case of search_path == null

am: cf9892b6

* commit 'cf9892b6':
  nativeloader: Fix the case of search_path == null

Change-Id: I1d0f66272bf687c9df55d80edec6ad42be9f90d4
parents 518f88a3 cf9892b6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -56,7 +56,12 @@ class LibraryNamespaces {
                              jstring java_library_path,
                              jstring java_permitted_path,
                              int32_t target_sdk_version) {
    ScopedUtfChars library_path(env, java_library_path);
    std::string library_path; // empty string by default.

    if (java_library_path != nullptr) {
      ScopedUtfChars library_path_utf_chars(env, java_library_path);
      library_path = library_path_utf_chars.c_str();
    }

    std::string permitted_path;
    if (java_permitted_path != nullptr) {