Skip to content

Commit

Permalink
Fix NPE in EspressoIdleTest in recent Baklava.
Browse files Browse the repository at this point in the history
TestLooperManagerCompat#getQueue didn't handle baklava case.

PiperOrigin-RevId: 713039379
  • Loading branch information
brettchabot authored and copybara-androidxtest committed Jan 7, 2025
1 parent e9de26f commit 4797842
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ void recycle(Message m) {
}

MessageQueue getQueue() {
return queue;
if (queue != null) {
return queue;
} else {
return delegate.getMessageQueue();
}
}
}

0 comments on commit 4797842

Please sign in to comment.