You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/01/28 10:09:52 UTC

[camel] branch camel-2.22.x updated: CAMEL-13132 - Camel-Azure: uploadBlobBlocks and commitBlobBlockList operations does not work with List

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.22.x by this push:
     new 9adbc58  CAMEL-13132 - Camel-Azure: uploadBlobBlocks and commitBlobBlockList operations does not work with List
9adbc58 is described below

commit 9adbc58d9e00ccf7f539953975cb1f30b9f5774a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jan 28 10:59:44 2019 +0100

    CAMEL-13132 - Camel-Azure: uploadBlobBlocks and commitBlobBlockList operations does not work with List
---
 .../org/apache/camel/component/azure/blob/BlobServiceProducer.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java b/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java
index 8e4f6b8..15254c2 100644
--- a/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java
+++ b/components/camel-azure/src/main/java/org/apache/camel/component/azure/blob/BlobServiceProducer.java
@@ -157,7 +157,7 @@ public class BlobServiceProducer extends DefaultProducer {
         
         List<BlobBlock> blobBlocks = null;
         if (object instanceof List) {
-            blobBlocks = blobBlocks;
+            blobBlocks = (List<BlobBlock>) object;
         } else if (object instanceof BlobBlock) {
             blobBlocks = Collections.singletonList((BlobBlock)object);
         } 
@@ -189,7 +189,7 @@ public class BlobServiceProducer extends DefaultProducer {
         
         List<BlockEntry> blockEntries = null;
         if (object instanceof List) {
-            blockEntries = blockEntries;
+            blockEntries = (List<BlockEntry>) object;
         } else if (object instanceof BlockEntry) {
             blockEntries = Collections.singletonList((BlockEntry)object);
         }