bugmakerrrrrr commented on code in PR #13162: URL: https://github.com/apache/lucene/pull/13162#discussion_r1517586857
########## lucene/core/src/java/org/apache/lucene/search/FloatVectorSimilarityValuesSource.java: ########## @@ -40,6 +40,9 @@ public FloatVectorSimilarityValuesSource(float[] vector, String fieldName) { @Override public DoubleValues getValues(LeafReaderContext ctx, DoubleValues scores) throws IOException { final FloatVectorValues vectorValues = ctx.reader().getFloatVectorValues(fieldName); + if (vectorValues == null) { + return DoubleValues.EMPTY; + } Review Comment: Nice catch. I will fix it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org