fixed a null pointer exception

This commit is contained in:
hneemann 2019-10-20 09:47:56 +02:00
parent ce301ddbec
commit 195ff84f5f

View File

@ -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