ContentStreamUpdateRequest should play nice even with no streams
----------------------------------------------------------------
Key: SOLR-2084
URL: https://issues.apache.org/jira/browse/SOLR-2084
Project: Solr
Issue Type: Improvement
Reporter: Hoss Man
As noted by a user, attempting to use stream.file or stream.url with the
ContentStreamUpdateRequest (an understandable situation that might arise if
people aren't completely clear on when it's needed) can result in an NPE from
CommonsHttpSolrServer (because it has no streams to send) ...
{code}
java.lang.NullPointerException
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:381)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243)
at CommonTest.indexFilesSolrCell(CommonTest.java:59)
at CommonTest.main(CommonTest.java:26)
{code}
UpdateRequest doesn't have this problem, In the pathological case of no streams
ContentStreamUpdateRequest should behave just like UpdateRequest and
QueryRequest.
--
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: [email protected]
For additional commands, e-mail: [email protected]