aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-04-14 22:38:52 +0200
committerTor Egge <Tor.Egge@online.no>2023-04-14 22:38:52 +0200
commitcdc45b909deb8f9a520ba922a7b88e283e72917e (patch)
tree10f48538278cb0f16d1f7fef6f6b3245b9c9de94 /searchlib/src
parente8d305235e54c2f58998401b3f6245b3e6fd3031 (diff)
No remapper means no remapping of reference to default value.
Diffstat (limited to 'searchlib/src')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/enumstore.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/enumstore.hpp b/searchlib/src/vespa/searchlib/attribute/enumstore.hpp
index a78d545c15f..98f82ade535 100644
--- a/searchlib/src/vespa/searchlib/attribute/enumstore.hpp
+++ b/searchlib/src/vespa/searchlib/attribute/enumstore.hpp
@@ -269,7 +269,7 @@ std::unique_ptr<IEnumStore::EnumIndexRemapper>
EnumStoreT<EntryT>::compact_worst_values(CompactionSpec compaction_spec, const CompactionStrategy& compaction_strategy)
{
auto remapper = _store.compact_worst(compaction_spec, compaction_strategy);
- if (_default_value_ref.valid()) {
+ if (remapper && _default_value_ref.valid()) {
if (remapper->get_entry_ref_filter().has(_default_value_ref)) {
_default_value_ref = remapper->remap(_default_value_ref);
}