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
@ -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…
x
Reference in New Issue
Block a user