forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r680998 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
Date Wed, 30 Jul 2008 12:23:32 GMT
Author: thorsten
Date: Wed Jul 30 05:23:31 2008
New Revision: 680998

URL: http://svn.apache.org/viewvc?rev=680998&view=rev
Log:
Making sure we can not cause a NPE

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java?rev=680998&r1=680997&r2=680998&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
Wed Jul 30 05:23:31 2008
@@ -65,7 +65,9 @@
         } catch (ServiceException e) {
             throw new ProcessingException(e);
         }finally{
-          post.releaseConnection();
+          if (null!=post){
+            post.releaseConnection();
+          }
         }
         
     }



Mime
View raw message