This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit d1d368d1a8a261f598e6504728d5352f244c5715 Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Nov 2 10:17:44 2016 +0100 Fix show config if no data source is open --- .../fr/ird/observe/application/swing/ui/actions/ShowConfigAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/actions/ShowConfigAction.java b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/actions/ShowConfigAction.java index dba3337..790c2e0 100644 --- a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/actions/ShowConfigAction.java +++ b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/actions/ShowConfigAction.java @@ -116,7 +116,7 @@ public class ShowConfigAction extends AbstractAction { SpeciesListTableCellEditor editor = null; SpeciesListsTableCellRenderer renderer = null; - if (dataSource != null) { + if (dataSource != null && dataSource.isOpen()) { Set<ReferentialReference<SpeciesListDto>> speciesLists = dataSource.getReferentialReferences(SpeciesListDto.class); @@ -191,7 +191,7 @@ public class ShowConfigAction extends AbstractAction { protected void addDataOptions(ObserveConfigUIBuilder helper, ObserveSwingDataSource dataSource) { - if (dataSource != null) { + if (dataSource != null && dataSource.isOpen()) { helper.addCategory(n("observe.config.category.speciesList.seine"), n("observe.config.category.speciesList.seine.description"), -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.