Skip to content

Commit

Permalink
Fixed wrong access to multiIndex data map causing NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWiemer committed Aug 26, 2024
1 parent f90f268 commit 89dcba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jacis/index/JacisIndexRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ <IK> Collection<TV> multiGetFromNonUniqueIndexReadOnly(JacisNonUniqueIndex<IK, K
<IK> Stream<K> nonDistinctStreamFromNonUniqueMultiIndexPrimaryKeys(JacisNonUniqueMultiIndex<IK, K, TV> index, IK indexKey) {
JacisIndexRegistryTxView<K, TV> regTxView = store.getIndexRegistryTransactionView(); // null if no TX
String indexName = index.getIndexName();
Map<Object, Set<K>> indexMap = nonUniqueIndexDataMap.get(indexName);
Map<Object, Set<K>> indexMap = nonUniqueMultiIndexDataMap.get(indexName);
Stream<K> resultStream = indexMap.getOrDefault(indexKey, Collections.emptySet()).stream();
if (regTxView != null) {
Set<K> add = regTxView.getPrimaryKeysAddedForNonUniqueIndex(indexName, indexKey);
Expand Down

0 comments on commit 89dcba0

Please sign in to comment.