You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "pzygielo (via GitHub)" <gi...@apache.org> on 2023/09/30 11:26:27 UTC

[GitHub] [lucene] pzygielo opened a new pull request, #12611: Avoid NPEx if the end of the stream has been reached without reading any characters

pzygielo opened a new pull request, #12611:
URL: https://github.com/apache/lucene/pull/12611

   e.g. by user responding with ^D
   ```
   Press (n)ext page, (q)uit or enter number to jump to a page.
   Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.length()" because "line" is null
   	at org.apache.lucene.demo.SearchFiles.doPagingSearch(SearchFiles.java:244)
   	at org.apache.lucene.demo.SearchFiles.main(SearchFiles.java:152)
   ```
   
   ```
   Press (p)revious page, (n)ext page, (q)uit or enter number to jump to a page.
   n
   Only results 1 - 50 of 104 total matching documents collected.
   Collect more (y/n) ?
   Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.length()" because "line" is null
   	at org.apache.lucene.demo.SearchFiles.doPagingSearch(SearchFiles.java:198)
   	at org.apache.lucene.demo.SearchFiles.main(SearchFiles.java:152)
   ```
   
   ### Description
   
   <!--
   If this is your first contribution to Lucene, please make sure you have reviewed the contribution guide.
   https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
   -->
   


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Avoid NPEx if the end of the stream has been reached without reading any characters [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss merged PR #12611:
URL: https://github.com/apache/lucene/pull/12611


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Avoid NPEx if the end of the stream has been reached without reading any characters [lucene]

Posted by "pzygielo (via GitHub)" <gi...@apache.org>.
pzygielo commented on PR #12611:
URL: https://github.com/apache/lucene/pull/12611#issuecomment-1751670565

   May I ask for review, please?


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Avoid NPEx if the end of the stream has been reached without reading any characters [lucene]

Posted by "pzygielo (via GitHub)" <gi...@apache.org>.
pzygielo commented on PR #12611:
URL: https://github.com/apache/lucene/pull/12611#issuecomment-1752377046

   Thanks for checking.


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Avoid NPEx if the end of the stream has been reached without reading any characters [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on PR #12611:
URL: https://github.com/apache/lucene/pull/12611#issuecomment-1752397871

   I've applied this to main and branch_9x (9.9). Thank you.


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Avoid NPEx if the end of the stream has been reached without reading any characters [lucene]

Posted by "pzygielo (via GitHub)" <gi...@apache.org>.
pzygielo commented on PR #12611:
URL: https://github.com/apache/lucene/pull/12611#issuecomment-1751671154

   @kaivalnp @gf2121


-- 
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-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org