Additional check to catch BooksTablet monkey issue
Change-Id: I9dfe695b008b2ca23998d2cfb29e5ba04354a029
diff --git a/src/monitor.cc b/src/monitor.cc
index 6887010..dcb3c04 100644
--- a/src/monitor.cc
+++ b/src/monitor.cc
@@ -237,6 +237,12 @@
va_list args;
va_start(args, fmt);
Thread::Current()->ThrowNewExceptionV("Ljava/lang/IllegalMonitorStateException;", fmt, args);
+ if (!Runtime::Current()->IsStarted()) {
+ std::ostringstream ss;
+ Thread::Current()->Dump(ss);
+ std::string str(ss.str());
+ LOG(ERROR) << "IllegalMonitorStateException: " << str;
+ }
va_end(args);
}