Program: 55244
Project: 55244
Buggy source:
@Nullable private List<Marshallable> value(@NotNull IndexQuery<V> vanillaIndexQuery,@NotNull ExcerptTailer tailer,@NotNull Iterator<IndexedValue<V>> iterator,final long from){
  List<Marshallable> indexedValues=indexedValueList.get();
  indexedValues.clear();
  if (iterator.hasNext()) {
    IndexedValue<V> indexedValue=iterator.next();
    indexedValue.timePublished(System.currentTimeMillis());
    indexedValue.maxIndex(lastIndexRead);
    indexedValues.add(indexedValue);
    return indexedValues;
  }
  final String eventName=vanillaIndexQuery.eventName();
  final Predicate<V> filter=vanillaIndexQuery.filter();
  if (isClosed.get())   throw Jvm.rethrow(new InvalidEventHandlerException("String_Node_Str"));
  try (DocumentContext dc=tailer.readingDocument()){
    if (!dc.isPresent())     return null;
    if (LOG.isDebugEnabled())     LOG.debug("String_Node_Str",Wires.fromSizePrefixedBlobs(dc));
    if (from > dc.index())     return null;
    final StringBuilder sb=Wires.acquireStringBuilder();
    while (dc.wire().bytes().readRemaining() > 0) {
      final ValueIn valueIn=dc.wire().read(sb);
      if (!eventName.contentEquals(sb))       continue;
      final Function<Class,ReadMarshallable> objectCache=objectCacheThreadLocal.get();
      final V v=valueIn.typedMarshallable(objectCache);
      if (!filter.test(v))       continue;
      final IndexedValue<V> indexedValue=this.indexedValue.get();
      long index=dc.index();
      indexedValue.index(index);
      indexedValue.v(v);
      indexedValue.timePublished(System.currentTimeMillis());
      indexedValue.maxIndex(lastIndexRead);
      indexedValues.add(indexedValue);
    }
  }
   return indexedValues;
}

Fixed version (ground truth):
@Nullable private List<Marshallable> value(@NotNull IndexQuery<V> vanillaIndexQuery,@NotNull ExcerptTailer tailer,@NotNull Iterator<IndexedValue<V>> iterator,final long from){
  List<Marshallable> indexedValues=indexedValueList.get();
  indexedValues.clear();
  if (iterator.hasNext()) {
    IndexedValue<V> indexedValue=iterator.next();
    indexedValue.timePublished(System.currentTimeMillis());
    indexedValue.maxIndex(lastIndexRead);
    indexedValues.add(indexedValue);
    return indexedValues;
  }
  final String eventName=vanillaIndexQuery.eventName();
  final Predicate<V> filter=vanillaIndexQuery.filter();
  if (isClosed.get())   throw Jvm.rethrow(new InvalidEventHandlerException("String_Node_Str"));
  try (DocumentContext dc=tailer.readingDocument()){
    if (!dc.isPresent())     return null;
    if (LOG.isDebugEnabled())     LOG.debug("String_Node_Str",Wires.fromSizePrefixedBlobs(dc));
    if (from > dc.index())     return null;
    final StringBuilder sb=Wires.acquireStringBuilder();
    while (dc.wire().bytes().readRemaining() > 0) {
      final ValueIn valueIn=dc.wire().read(sb);
      if (!eventName.contentEquals(sb)) {
        valueIn.typedMarshallable();
        continue;
      }
      final Function<Class,ReadMarshallable> objectCache=objectCacheThreadLocal.get();
      final V v=valueIn.typedMarshallable(objectCache);
      if (!filter.test(v))       continue;
      final IndexedValue<V> indexedValue=this.indexedValue.get();
      long index=dc.index();
      indexedValue.index(index);
      indexedValue.v(v);
      indexedValue.timePublished(System.currentTimeMillis());
      indexedValue.maxIndex(lastIndexRead);
      indexedValues.add(indexedValue);
    }
  }
   return indexedValues;
}