Remove need for libarttest.so for gtests for tradefed
Change-Id: I18b39b9fc6f0bfa163ef7e7063864696d6958ad0
diff --git a/src/jni_internal.cc b/src/jni_internal.cc
index 8e7c0a2..5385ae2 100644
--- a/src/jni_internal.cc
+++ b/src/jni_internal.cc
@@ -2853,7 +2853,7 @@
void* handle = NULL;
{
ScopedThreadStateChange tsc(self, Thread::kVmWait);
- handle = dlopen(path.c_str(), RTLD_LAZY);
+ handle = dlopen(path.empty() ? NULL : path.c_str(), RTLD_LAZY);
}
VLOG(jni) << "[Call to dlopen(\"" << path << "\") returned " << handle << "]";