8023148: [macosx] java.util.NoSuchElementException at java.util.LinkedList.getFirst
Reviewed-by: ant, serb
This commit is contained in:
parent
5d49c8af39
commit
815543bb82
@ -287,7 +287,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
synchronized (this) {
|
||||
KeyEvent ke = enqueuedKeyEvents.isEmpty() ? null : enqueuedKeyEvents.getFirst();
|
||||
if (ke != null && time >= ke.getWhen()) {
|
||||
TypeAheadMarker marker = typeAheadMarkers.getFirst();
|
||||
TypeAheadMarker marker = typeAheadMarkers.isEmpty() ? null : typeAheadMarkers.getFirst();
|
||||
if (marker != null) {
|
||||
Window toplevel = marker.untilFocused.getContainingWindow();
|
||||
// Check that the component awaiting focus belongs to
|
||||
|
Loading…
x
Reference in New Issue
Block a user