when updating database filters, check for existence of checkboxes that may not exist depending on type of component before checking their state
This commit is contained in:
parent
0cd5dcbe09
commit
b68c1cd85e
@ -297,10 +297,10 @@ public class ComponentPresetChooserDialog extends JDialog {
|
||||
} catch (java.util.regex.PatternSyntaxException e) {
|
||||
}
|
||||
}
|
||||
if (aftDiameterFilterCheckBox.isSelected()) {
|
||||
if ((null != aftDiameterFilterCheckBox) && aftDiameterFilterCheckBox.isSelected()) {
|
||||
filters.add(aftDiameterFilter);
|
||||
}
|
||||
if (foreDiameterFilterCheckBox.isSelected()) {
|
||||
if ((null != foreDiameterFilterCheckBox) && foreDiameterFilterCheckBox.isSelected()) {
|
||||
filters.add(foreDiameterFilter);
|
||||
}
|
||||
if (!showLegacyCheckBox.isSelected()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user