Merge "nativeloader: Ignore empty java_permitted_path"

This commit is contained in:
Dimitry Ivanov 2016-05-11 07:36:31 +00:00 committed by Gerrit Code Review
commit 39d1230ee3
1 changed files with 3 additions and 1 deletions

View File

@ -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())) {