mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-22 09:29:38 +00:00
Ensure the cached fields are populated before showing the Exception UI
This commit is contained in:
@@ -1124,7 +1124,7 @@ class AndroidDebugSession extends DebugSession {
|
||||
if (!thread.paused) return this.cancelRequestThreadNotSuspended('Exception info', args.threadId, response);
|
||||
if (!thread.paused.last_exception) return this.failRequest('No exception available', response);
|
||||
|
||||
if (!thread.paused.last_exception.objvar) {
|
||||
if (!thread.paused.last_exception.objvar || !thread.paused.last_exception.cached) {
|
||||
// we must wait for the exception object to be retreived as a local (along with the message field)
|
||||
if (!thread.paused.last_exception.waitForExObject) {
|
||||
thread.paused.last_exception.waitForExObject = $.Deferred().then(() => {
|
||||
|
||||
Reference in New Issue
Block a user