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

Matthew Swift
17.32.2013 f4de5503b5340cb28496253e58d176538d24dac5
refs
author Matthew Swift <matthew.swift@forgerock.com>
Tuesday, December 17, 2013 23:32 +0100
committer Matthew Swift <matthew.swift@forgerock.com>
Tuesday, December 17, 2013 23:32 +0100
commitf4de5503b5340cb28496253e58d176538d24dac5
tree 4219640537ac69914dc2846be98c60e864b991f3 tree | zip | gz
parent aaea2934c4cc74d5bcf3d85146a4c29578e18fc0 view | diff
Fix OPENDJ-1246: NPE while creating a new index

Don't register configuration change listener in constructor since the constructor is invoked during configuration validation as well as when applying the configuration change. Instead register the listener once the index has been opened, which is only done during backend init and when adding new indexes, and which is also symmetric with listener deregistration which is performed when closing indexes.
1 files modified
5 ■■■■■ changed files
opends/src/server/org/opends/server/backends/jeb/AttributeIndex.java 5 ●●●●● diff | view | raw | blame | history