Fix wrong operator (`||` -> `&&`).
Test: testrunner.py --host --interpreter --no-image
Bug: 253570082
Change-Id: Ic1c5f250bcc7cffd5c6ad6f7d538dfa7b563e231
diff --git a/runtime/common_throws.cc b/runtime/common_throws.cc
index b898d11..031cedd 100644
--- a/runtime/common_throws.cc
+++ b/runtime/common_throws.cc
@@ -726,7 +726,7 @@
// TODO: Initialize these classes during `ClassLinker` initialization to avoid doing it here.
auto ensure_initialized = [self](Handle<mirror::Class> klass)
REQUIRES_SHARED(Locks::mutator_lock_) {
- if (UNLIKELY(!klass->IsVisiblyInitialized()) ||
+ if (UNLIKELY(!klass->IsVisiblyInitialized()) &&
UNLIKELY(!Runtime::Current()->GetClassLinker()->EnsureInitialized(
self, klass, /*can_init_fields=*/ true, /*can_init_parents=*/ true))) {
LOG(WARNING) << "Failed to initialize class " << klass->PrettyDescriptor();