Amandeep Saini created SOLR-4145:
------------------------------------

             Summary: 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


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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to