Fix x86 target build
(cherry picked from commit d396a6a21189ee99f6fa5266075840dc661859e8)
Change-Id: I798847a2576365b1cdc3b9c95fa601a6196d09d5
diff --git a/src/debugger.cc b/src/debugger.cc
index 0b76e8a..7dfbd22 100644
--- a/src/debugger.cc
+++ b/src/debugger.cc
@@ -1633,6 +1633,7 @@
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);