[ 
https://issues.apache.org/jira/browse/SOLR-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Dyer resolved SOLR-4145.
------------------------------

    Resolution: Duplicate
      Assignee: James Dyer

I agree that the code seems to have been written with the intention that 
JdbcDataSource should allow entities do non-selects and handle null resultsets. 
 The use-case is understandable, in my opinion.  This can be fixed with 
SOLR-3409.
                
> Getting a NPE when the result set is null
> -----------------------------------------
>
>                 Key: SOLR-4145
>                 URL: https://issues.apache.org/jira/browse/SOLR-4145
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Amandeep Saini
>            Assignee: James Dyer
>
> Re: org.apache.solr.handler.dataimport.JdbcDataSource
> In line 250, resultSet.getMetaData() is called. However, if the resultSet is 
> null, a NPE is thrown.
> In line 254, the null check is done (if (resultSet == null))
> The contents of line 250 should occur after the null check.
> I am getting the NPE after trying to delete some data in my DB using the DIH. 
> The DIH is probably not meant for that but it would benefit me if it worked 
> and I don't see a big change in the code in order to do it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to