Skip to content
Snippets Groups Projects
Commit 7e8f2555 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

NullPointerException avoided

parent 9b0837ca
No related branches found
No related tags found
No related merge requests found
......@@ -160,11 +160,17 @@ public class ConfigurationsPanel extends JPanel implements ITextMatrixTarget, IE
addHierarchyListener(e -> {
if (isShowing()) {
SwingUtilities.invokeLater(() -> {
if (currentConfigButton != null) {
currentConfigButton.setBackground(background);
currentConfigButton.setBorder(Utilities.EMPTY_BORDER);
}
if (newConfigButton != null) {
newConfigButton.setBackground(background);
newConfigButton.setBorder(Utilities.EMPTY_BORDER);
}
if (configTree != null) {
((ConfigurationTreeRenderer) configTree.getCellRenderer()).cleanLabels();
}
});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment