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

Matthew Swift
17.32.2013 365ab60637c708a04f5f0aab7b81474ef224630b
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
commit365ab60637c708a04f5f0aab7b81474ef224630b
tree d73f003bec97992dd9d80120713bba9004261c5e tree | zip | gz
parent 3802f296fc94299b99631bce98ec2199c689bcd8 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
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/AttributeIndex.java 5 ●●●●● diff | view | raw | blame | history