mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8190456: sanity/client/SwingSet/src/ComboBoxDemoTest.java failed with NPE from java.awt.EventQueue.getCurrentEventImpl()
Reviewed-by: serb, psadhukhan
This commit is contained in:
parent
e1e58fe2de
commit
362d39e670
1 changed files with 3 additions and 5 deletions
|
@ -858,15 +858,13 @@ public class EventQueue {
|
|||
private AWTEvent getCurrentEventImpl() {
|
||||
pushPopLock.lock();
|
||||
try {
|
||||
if (fxAppThreadIsDispatchThread) {
|
||||
if (Thread.currentThread() == dispatchThread
|
||||
|| fxAppThreadIsDispatchThread) {
|
||||
return (currentEvent != null)
|
||||
? currentEvent.get()
|
||||
: null;
|
||||
} else {
|
||||
return (Thread.currentThread() == dispatchThread)
|
||||
? currentEvent.get()
|
||||
: null;
|
||||
}
|
||||
return null;
|
||||
} finally {
|
||||
pushPopLock.unlock();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue