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:
Lorenzo Tilve Álvaro 2013-04-12 18:56:32 +02:00
parent 839d72d639
commit 1d1473b9a5

View file

@ -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,