lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Parkes (JIRA)" <>
Subject [jira] Commented: (LUCENE-819) NullPointerException in Term.compareTo()
Date Wed, 28 Feb 2007 02:39:05 GMT


Steven Parkes commented on LUCENE-819:

Can you say anymore about why it was impossible? What if Term checked for null field or text
and threw an exception that you could catch (though this might not be a good idea the check
would always be there but it's an uncommon case ...). Note that Lucene specifically checks
to see if you try to add a null field or a null field value to a doc and won't let you.

As to deleting attachments, it's unnecessary/discouraged (and possibly these days, impossible).
If you name two patches the same, the older one is grayed out, making it pretty clear that
one replaces the other. It's considered valuable to be able to go back and look at old attachments.

> NullPointerException in Term.compareTo()
> ----------------------------------------
>                 Key: LUCENE-819
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>         Environment: JDK 1.4 on MacOS
>            Reporter: Dan Zivkovic
>         Attachments: lucene-819.patch, lucene-819.patch,
>  java.lang.NullPointerException
>  	at org.apache.lucene.index.Term.compareTo(
>  	at org.apache.lucene.index.TermInfosReader.getIndexOffset(
>  	at org.apache.lucene.index.TermInfosReader.get(
>  	at org.apache.lucene.index.SegmentReader.docFreq(
>  	at
>  	at
>  	at$TermWeight.<init>(
>  	at
>  	at$BooleanWeight.<init>(
>  	at$BooleanWeight2.<init>(
>  	at
>  	at
>  	at<init>(
>  	at
>         ...

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message