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

jvergara
22.22.2008 5a76a2f3aa2e0356e134d67e7ef5e7eba1fa8efc
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
opends/src/server/org/opends/server/backends/jeb/BackendImpl.java 7 ●●●● patch | view | raw | blame | history
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())