NPE on startup (license screen doesn't have application initialized yet)

This commit is contained in:
Maxim Shafirov
2012-03-26 14:12:36 +04:00
parent 4895f25b9d
commit de14910d4a
2 changed files with 3 additions and 3 deletions
@@ -34,7 +34,7 @@ public class NonFocusableCheckBox extends JCheckBox {
}
private void initFocusability() {
if (!UISettings.getInstance().DISABLE_MNEMONICS_IN_CONTROLS) { // Or that won't be keyboard accessible at all
if (!UISettings.getShadowInstance().DISABLE_MNEMONICS_IN_CONTROLS) { // Or that won't be keyboard accessible at all
setFocusable(false);
}
}
@@ -53,7 +53,7 @@ public class DialogUtil{
}
if (mnemonic != '\0') {
button.setText(realText.toString());
if (UISettings.getInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
if (UISettings.getShadowInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
button.setMnemonic(0);
button.setDisplayedMnemonicIndex(-1);
button.setFocusable(true);
@@ -93,7 +93,7 @@ public class DialogUtil{
}
if (mnemonic != '\0') {
label.setText(realText.toString());
if (UISettings.getInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
if (UISettings.getShadowInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
label.setDisplayedMnemonic(0);
label.setDisplayedMnemonicIndex(-1);
}