mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
22.22.2008 aefa978fcfb411fec77d38fc4653aa6658b8aca6
Fix for issue 2859 (NPE when trying to import after (re)moving db).

The problem comes because we were systematically closing the root container but in some cases it was not
created. This generated the NullPointerException.

1 files modified
7 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java 7 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/BackendImpl.java
@@ -1252,8 +1252,11 @@
      // leave the backend in the same state.
      try
      {
        rootContainer.close();
        rootContainer = null;
        if (rootContainer != null)
        {
          rootContainer.close();
          rootContainer = null;
        }
        // Sync the environment to disk.
        if (debugEnabled())