diff options
Diffstat (limited to 'runtime/native/dalvik_system_DexFile.cc')
-rw-r--r-- | runtime/native/dalvik_system_DexFile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/native/dalvik_system_DexFile.cc b/runtime/native/dalvik_system_DexFile.cc index 9f9d82b919..716356e9a0 100644 --- a/runtime/native/dalvik_system_DexFile.cc +++ b/runtime/native/dalvik_system_DexFile.cc @@ -200,7 +200,7 @@ static jclass DexFile_defineClassNative(JNIEnv* env, jclass, jstring javaName, j static jobjectArray DexFile_getClassNameList(JNIEnv* env, jclass, jlong cookie) { jobjectArray result = nullptr; const DexFile* dex_file = toDexFile(cookie, env); - if (dex_file == nullptr) { + if (dex_file != nullptr) { result = env->NewObjectArray(dex_file->NumClassDefs(), WellKnownClasses::java_lang_String, nullptr); if (result != nullptr) { |