summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/debugger.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/debugger.cc b/src/debugger.cc
index 0b76e8a29e..7dfbd22eac 100644
--- a/src/debugger.cc
+++ b/src/debugger.cc
@@ -1633,6 +1633,7 @@ JDWP::JdwpError Dbg::GetThisObject(JDWP::ObjectId thread_id, JDWP::FrameId frame
UniquePtr<Context> context(Context::Create());
Thread* thread = DecodeThread(thread_id);
if (thread == NULL) {
+ *result = 0;
return JDWP::ERR_INVALID_THREAD;
}
GetThisVisitor visitor(thread->GetManagedStack(), thread->GetTraceStack(), context.get(), frame_id);