OPENDJ-1934 Little bug fixing
* org.opends.guitools.controlpanel.ui.AbstractIndexPanel.java
* org.opends.guitools.controlpanel.ui.AbstractVLVIndexPanel.java
** Moves exception check after context close. Otherwise exceptions thrown during the close phase may remain uncaught.
| | |
| | | final List<IOException> exceptions = new ArrayList<>(); |
| | | final ManagementContext context = LDAPManagementContext.newLDIFManagementContext( |
| | | Installation.getLocal().getCurrentConfigurationFile(), LDAPProfile.getInstance(), exceptions); |
| | | Utilities.throwFirstFrom(exceptions); |
| | | final BackendCfgClient backend = context.getRootConfiguration().getBackend(backendName); |
| | | if (backend instanceof LocalDBBackendCfgClient) |
| | | { |
| | |
| | | (PluggableBackendCfgClient) backend, indexToModify, attributeName, indexTypes, indexEntryLimit); |
| | | } |
| | | context.close(); |
| | | Utilities.throwFirstFrom(exceptions); |
| | | } |
| | | catch (final Exception e) |
| | | { |
| | |
| | | final List<IOException> exceptions = new ArrayList<>(); |
| | | final ManagementContext context = LDAPManagementContext.newLDIFManagementContext( |
| | | Installation.getLocal().getCurrentConfigurationFile(), LDAPProfile.getInstance(), exceptions); |
| | | Utilities.throwFirstFrom(exceptions); |
| | | final BackendCfgClient backend = context.getRootConfiguration().getBackend(backendName); |
| | | if (backend instanceof LocalDBBackendCfgClient) |
| | | { |
| | |
| | | searchScope, sortOrder); |
| | | } |
| | | context.close(); |
| | | Utilities.throwFirstFrom(exceptions); |
| | | } |
| | | catch (final Exception e) |
| | | { |