Fix NPE when saving changes on configuration window without any connector
When there was not any application selected into the connectors tab, saving the main settings window raised an NPE. FEA: ItEr77S04BugFixing
This commit is contained in:
parent
839d72d639
commit
1d1473b9a5
1 changed files with 2 additions and 1 deletions
|
|
@ -227,7 +227,8 @@ public class ConfigurationController extends GenericForwardComposer {
|
|||
configurationModel.confirm();
|
||||
configurationModel.init();
|
||||
messages.showMessage(Level.INFO, _("Changes saved"));
|
||||
if (!configurationModel
|
||||
if (getSelectedConnector() != null
|
||||
&& !configurationModel
|
||||
.scheduleOrUnscheduleJobs(getSelectedConnector())) {
|
||||
messages.showMessage(
|
||||
Level.ERROR,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue