mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 06:49:36 -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
|
||||
public void windowGainedFocus(WindowEvent windowEvent) {
|
||||
SwingUtilities.invokeLater(parent::requestFocus);
|
||||
if (parent != null)
|
||||
SwingUtilities.invokeLater(parent::requestFocus);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user