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

Jean-Noel Rouvignac
03.17.2015 12300e9ede17e7c8b1e35436b88565b285c3fb70
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 3, 2015 15:17 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 3, 2015 15:17 +0100
commit12300e9ede17e7c8b1e35436b88565b285c3fb70
tree 8d64bee09fe7cfbf55a1b30b88a95401be3278f8 tree | zip | gz
parent a39783c0d0b94e6eef5e7836168d919442c77f56 view | diff
OPENDJ-1762 (CR-5923) verify-index on non existing index fails with NullPointerException when the server is stopped

Verifying a non existing index triggers some untested unhappy paths.
Faulty exception handling was creating the issue.


PersistItStorage.java:
In read(), only throw the cause if there is a cause.

VerifyJob.java:
Do not wrap StorageRuntimeException inside StorageRuntimeException.

BackendImpl.java:
Chain the original exception.
3 files modified
18 ■■■■ changed files
opendj3-server-dev/src/server/org/opends/server/backends/persistit/PersistItStorage.java 12 ●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/BackendImpl.java 2 ●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/VerifyJob.java 4 ●●●● diff | view | raw | blame | history