Issues
- NPE using two fulltext filters, one of them matching nothing (some filters only)HSEARCH-741Resolved issue: HSEARCH-741Sanne Grinovero
- Entity whose related entity collection is updated causes loading of @ContainedIn entitiesHSEARCH-679Resolved issue: HSEARCH-679
- Support for only manual indexing of particular entity typesHSEARCH-642Resolved issue: HSEARCH-642Hardy Ferentschik
- Limit graph traversal by @ContainedIn to the minimum required pathHSEARCH-638Resolved issue: HSEARCH-638Davide D'Alto
- FileNotFoundException during slave synchronization with sourceHSEARCH-614Resolved issue: HSEARCH-614
- AndDocIdSet makeDocIdSetOnAgreedBits() returns wrong valuesHSEARCH-610Resolved issue: HSEARCH-610
- Able to annotate @AnalyzerDiscriminator to more than one field.HSEARCH-609Resolved issue: HSEARCH-609Yoann Rodière
- @ContainedIn does not work on deletes.HSEARCH-605Resolved issue: HSEARCH-605Yoann Rodière
- Hibernate cannot correctly load Locale in a @EmbeddedId keyHSEARCH-599Resolved issue: HSEARCH-599
- MassIndexer freezes when pool size is too lowHSEARCH-598Resolved issue: HSEARCH-598
- Programmatic mapping raises exception when a non getter method is parsed by the metadata binderHSEARCH-591Resolved issue: HSEARCH-591
- JTA transaction commit: Access a Sealed WorkQueue which has not been sealedHSEARCH-578Resolved issue: HSEARCH-578
- IllegalArgumentException when using @Proxy and trying to delete a loaded but proxied classHSEARCH-577Resolved issue: HSEARCH-577
- IllegalArgumentException when trying to delete proxy classHSEARCH-576Resolved issue: HSEARCH-576
- PerDPQueueProcessor forces release of lock even if not held - causes corrupt indexHSEARCH-573Resolved issue: HSEARCH-573
- MassIndexer eats lock ExceptionHSEARCH-571Resolved issue: HSEARCH-571Sanne Grinovero
- Optimize the o^2 loop in DocumentBuilderIndexedEntity.addWorkToQueueHSEARCH-570Resolved issue: HSEARCH-570
- Unable to push staged releases because hibernate-search-testing does not deploy the sources artifactsHSEARCH-568Resolved issue: HSEARCH-568
- mvn release:prepare release:perform fails on branch buildsHSEARCH-567Resolved issue: HSEARCH-567
19 of 19
NPE using two fulltext filters, one of them matching nothing (some filters only)
Fixed
Description
Details
Assignee
Sanne GrinoveroSanne GrinoveroReporter
Sanne GrinoveroSanne GrinoveroFix versions
Affects versions
Priority
Major
Details
Details
Assignee
Sanne Grinovero
Sanne GrinoveroReporter
Sanne Grinovero
Sanne GrinoveroFix versions
Affects versions
Priority
Created April 20, 2011 at 11:33 PM
Updated January 27, 2015 at 10:20 PM
Resolved October 21, 2012 at 9:18 PM
Activity
Sanne GrinoveroOctober 21, 2012 at 9:15 PM
reopening temporarily as its fix was ported to the 3.4 branch without marking that here.
Steve JonesMay 31, 2011 at 10:59 PM
Related forum https://forum.hibernate.org/viewtopic.php?p=2444240
It seems that some filter implementations are allowed to return null instead of an empty iterator if they don't match any document.
In this case if multiple filters are enabled, and they are eligible for bitset merging, and no matches where found, we get:
java.lang.NullPointerException org.hibernate.search.filter.AndDocIdSet.findFirstTargetPosition(AndDocIdSet.java:144) org.hibernate.search.filter.AndDocIdSet.makeDocIdSetOnAgreedBits(AndDocIdSet.java:89) org.hibernate.search.filter.AndDocIdSet.buildBitSet(AndDocIdSet.java:81) org.hibernate.search.filter.AndDocIdSet.iterator(AndDocIdSet.java:60) org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:550) org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:525) org.hibernate.search.query.engine.impl.QueryHits.updateTopDocs(QueryHits.java:219) org.hibernate.search.query.engine.impl.QueryHits.<init>(QueryHits.java:127) org.hibernate.search.query.engine.impl.HSQueryImpl.getQueryHits(HSQueryImpl.java:419) org.hibernate.search.query.engine.impl.HSQueryImpl.queryEntityInfos(HSQueryImpl.java:222) org.hibernate.search.query.hibernate.impl.FullTextQueryImpl.list(FullTextQueryImpl.java:206) com.example.dao.impl.DaoImpl.search(Unknown Source) ....