Merge "Add dex_lang as common frontend to lir and LLVM. dex_lang + bc2lir = Greenland" into ics-mr1-plus-art
diff --git a/src/debugger.cc b/src/debugger.cc
index 342d548..e928b46 100644
--- a/src/debugger.cc
+++ b/src/debugger.cc
@@ -3049,8 +3049,8 @@
MethodHelper mh;
for (size_t i = 0; i < kMaxAllocRecordStackDepth; i++) {
Method* m = record->stack[i].method;
- mh.ChangeMethod(m);
if (m != NULL) {
+ mh.ChangeMethod(m);
class_names.Add(mh.GetDeclaringClassDescriptor());
method_names.Add(mh.GetName());
filenames.Add(mh.GetDeclaringClassSourceFile());