diff options
author | Steffen Ritter | 2017-06-19 14:52:37 +0200 |
---|---|---|
committer | Steffen Ritter | 2017-06-19 14:52:37 +0200 |
commit | 4c27130f2ea7dd8115464bc5d06b2524587dea9b (patch) | |
tree | 5f033ddebb51be760e6e58e39348fa15bededc03 /dozentenmodul | |
parent | [server] Adapt to new thrift version (diff) | |
download | tutor-module-4c27130f2ea7dd8115464bc5d06b2524587dea9b.tar.gz tutor-module-4c27130f2ea7dd8115464bc5d06b2524587dea9b.tar.xz tutor-module-4c27130f2ea7dd8115464bc5d06b2524587dea9b.zip |
[client] Fix possible NPE in settings window
Diffstat (limited to 'dozentenmodul')
-rwxr-xr-x | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ConfigWindow.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ConfigWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ConfigWindow.java index 3f7550ed..4637b839 100755 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ConfigWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ConfigWindow.java @@ -85,7 +85,8 @@ public class ConfigWindow extends ConfigWindowLayout implements UiFeedback, Acti for (Enumeration<AbstractButton> btn = btnGroupLookAndFeel.getElements(); btn.hasMoreElements();) { final JRadioButton b = (JRadioButton) btn.nextElement(); if (b.getToolTipText().equals(Config.getLookAndFeel())) { - b.setSelected( true); + selectedLookAndFeel = b; + b.setSelected(true); } b.addActionListener(new ActionListener() { @Override |