chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject 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
Date Sat, 28 Jun 2014 15:34:35 GMT
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)) {



Mime
View raw message