diff options
| -rw-r--r-- | profman/profman.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/profman/profman.cc b/profman/profman.cc index 18ee8dd9bb..f8266697ed 100644 --- a/profman/profman.cc +++ b/profman/profman.cc @@ -1329,6 +1329,10 @@ class ProfMan final { // Class not in dex-file. return std::nullopt; } + if (dex->GetClassData(*def) == nullptr) { + // Class has no fields or methods. + return std::nullopt; + } if (LIKELY(dex->GetCodeItemOffset(*def, method_index).has_value())) { return ClassMethodReference{class_ref, method_index}; } |