nativeloader: Ignore empty java_permitted_path
Passing empty permitted path should result in no-op. This addresses review comment on CL with commitf334cbf0e1
Bug: http://b/28639227 Change-Id: I4a4540e522e90a145a374939921932c86f35e88d (cherry picked from commitd0b1531929
)
This commit is contained in:
parent
0756fae4f1
commit
72ca40f738
|
@ -76,7 +76,9 @@ class LibraryNamespaces {
|
|||
|
||||
if (java_permitted_path != nullptr) {
|
||||
ScopedUtfChars path(env, java_permitted_path);
|
||||
permitted_path = permitted_path + ":" + path.c_str();
|
||||
if (path.c_str() != nullptr && path.size() > 0) {
|
||||
permitted_path = permitted_path + ":" + path.c_str();
|
||||
}
|
||||
}
|
||||
|
||||
if (!initialized_ && !InitPublicNamespace(library_path.c_str())) {
|
||||
|
|
Loading…
Reference in New Issue