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 09:32:46 UTC

[camel] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 411b558  CAMEL-13132 - Camel-Azure: uploadBlobBlocks and commitBlobBlockList operations does not work with List
411b558 is described below

commit 411b558def30edf56f5ad9a9a5aaf715b77056b5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jan 28 10:31:20 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 7abf7cb..5dac985 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
@@ -153,7 +153,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);
         } 
@@ -185,7 +185,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);
         }