mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-15 07:48:29 -04:00
fixed a null pointer exception
This commit is contained in:
parent
ce301ddbec
commit
195ff84f5f
@ -27,7 +27,8 @@ public class MoveFocusTo implements WindowFocusListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void windowGainedFocus(WindowEvent windowEvent) {
|
public void windowGainedFocus(WindowEvent windowEvent) {
|
||||||
SwingUtilities.invokeLater(parent::requestFocus);
|
if (parent != null)
|
||||||
|
SwingUtilities.invokeLater(parent::requestFocus);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user