Callers of SuspendAll should be in the kRunnable state
Change-Id: I37996164a5fd56251134683f717e6e00541cab22
diff --git a/src/thread.cc b/src/thread.cc
index e45da0d..9f54c36 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -498,7 +498,9 @@
os << "(Native method)";
} else {
int line_number = dex_file.GetLineNumFromPC(m, m->ToDexPC(pc));
- os << "(" << c->GetSourceFile()->ToModifiedUtf8() << ":" << line_number << ")";
+ SirtRef<String> source_file(c->GetSourceFile());
+ os << "(" << (source_file.get() != NULL ? source_file->ToModifiedUtf8() : "unavailable")
+ << ":" << line_number << ")";
}
os << "\n";