[java-opensaml COMMIT] /trunk/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/PipelineHttpSOAPClient.java

noreply at shibboleth.net noreply at shibboleth.net
Wed May 6 18:32:18 EDT 2015


Author: putmanb
Date: Wed May  6 18:32:18 2015
New Revision: 4268

URL: http://svn.shibboleth.net/view/java-opensaml?rev=4268&view=rev
Log:
Add missing null check in finally block.

Modified:
    trunk/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/PipelineHttpSOAPClient.java

Modified: trunk/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/PipelineHttpSOAPClient.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/PipelineHttpSOAPClient.java?rev=4268&r1=4267&r2=4268&view=diff
==============================================================================
--- trunk/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/PipelineHttpSOAPClient.java	(original)
+++ trunk/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/PipelineHttpSOAPClient.java	Wed May  6 18:32:18 2015
@@ -352,8 +352,10 @@
         } catch (IOException e) {
             throw new SOAPException("I/O problem with SOAP message exchange with: " + endpoint, e);
         } finally {
-            pipeline.getEncoder().destroy();
-            pipeline.getDecoder().destroy();
+            if (pipeline != null) {
+                pipeline.getEncoder().destroy();
+                pipeline.getDecoder().destroy();
+            }
         }
     }
     



More information about the commits mailing list