You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2014/06/28 17:34:35 UTC

svn commit: r1606376 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/tube/client/JreWssMUTube.java

Author: fmui
Date: Sat Jun 28 15:34:35 2014
New Revision: 1606376

URL: http://svn.apache.org/r1606376
Log:
fixed JDK 8 build

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/tube/client/JreWssMUTube.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/tube/client/JreWssMUTube.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/tube/client/JreWssMUTube.java?rev=1606376&r1=1606375&r2=1606376&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/tube/client/JreWssMUTube.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/tube/client/JreWssMUTube.java Sat Jun 28 15:34:35 2014
@@ -52,11 +52,11 @@ public class JreWssMUTube extends Abstra
 
     @Override
     public NextAction processResponse(Packet response) {
-        if (response.getMessage() == null) {
+        if (response.getMessage() == null || !response.getMessage().hasHeaders()) {
             return super.processResponse(response);
         }
 
-        HeaderList headers = response.getMessage().getHeaders();
+        HeaderList headers = (HeaderList) response.getMessage().getHeaders();
 
         for (int i = 0; i < headers.size(); i++) {
             if (!headers.isUnderstood(i)) {