[BLUEJ-1062] Exception occurs when loading unknown old keybinding
If you have an old keybinding (from before BlueJ 4) that is unknown, you get an exception which occurs when you try to open the preferences:
{code:java} java.lang.NullPointerException: Key code must not be null! at javafx.scene.input.KeyCodeCombination.validateKeyCode(KeyCodeCombination.java:207) at javafx.scene.input.KeyCodeCombination.(KeyCodeCombination.java:90) at bluej.editor.moe.MoeActions.convertSwingBindingToFX(MoeActions.java:669) {code}
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 4.1.1