Hi David,

I opened a JIRA and a PR:

https://issues.apache.org/jira/browse/SOLR-18627
https://github.com/apache/solr/pull/5305

Thanks,
Li Enlai

On Fri, Nov 6, 2026 at 1:17 PM David Smiley via dev <[email protected]>
wrote:

> Good catch!  It's a shame we didn't have a test for this!
>
> On Fri, Nov 6, 2026 at 12:12 AM Enlai Li <[email protected]> wrote:
>
> > Hi,
> > I saw this on users@. Writing an ignored_* field works on Solr 10.0 and
> > fails on 10.1 with a NullPointerException:
> > https://lists.apache.org/thread.html/28pqz7gkvr3tb3mrj7f9npvs8f6slqq5
> > In StrField.createFields(), before 10.1 the return was
> > Collections.singletonList(fval). Since 10.1 it is List.of(fval). For an
> > ignored field, fval is null. Collections.singletonList accepts null;
> > List.of does not, so the NPE is thrown before the field is dropped.
> > If this is not the expected behavior, I will open a JIRA and a PR to fix
> > it.
> > Thanks,
> > Li Enlai
> > This message was drafted with AI assistance and reviewed by me.
> >
>

Reply via email to