diff options
| -rw-r--r-- | runtime/debugger.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 2fff70e57d..2e23eb8bda 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -4350,6 +4350,11 @@ class HeapChunkContext { return HPSG_STATE(SOLIDITY_HARD, KIND_UNKNOWN); } + if (c->GetClass() == nullptr) { + LOG(ERROR) << "Null class of class " << c << " for object " << o; + return HPSG_STATE(SOLIDITY_HARD, KIND_UNKNOWN); + } + if (c->IsClassClass()) { return HPSG_STATE(SOLIDITY_HARD, KIND_CLASS_OBJECT); } |