mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-9527: Fix NPE with WLDataDevice.performDeletionsOnEDT() when headless [WLToolkit]
This commit is contained in:
@@ -276,7 +276,9 @@ public class WLToolkit extends UNIXToolkit implements Runnable {
|
||||
WLToolkit.awtLock();
|
||||
try {
|
||||
dispatchEventsOnEDT();
|
||||
dataDevice.performDeletionsOnEDT();
|
||||
if (dataDevice != null) {
|
||||
dataDevice.performDeletionsOnEDT();
|
||||
}
|
||||
} finally {
|
||||
eventsQueued.release();
|
||||
WLToolkit.awtUnlock();
|
||||
|
||||
Reference in New Issue
Block a user