diff options
-rw-r--r-- | runtime/debugger.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index d89ad5e..a0e978b 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -4382,6 +4382,10 @@ class HeapChunkContext { LOG(ERROR) << "Invalid class for managed heap object: " << o << " " << c; 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); } |