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 3656e1f  CAMEL-12547 - Fixed CS
3656e1f is described below

commit 3656e1f559755ec9022a8e30b42d571f0ffe061f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Jun 8 09:16:36 2018 +0200

    CAMEL-12547 - Fixed CS
---
 .../camel/component/google/mail/stream/GoogleMailStreamEndpoint.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamEndpoint.java
 
b/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamEndpoint.java
index c462e7e..4f49eba 100644
--- 
a/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamEndpoint.java
+++ 
b/components/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamEndpoint.java
@@ -123,7 +123,7 @@ public class GoogleMailStreamEndpoint extends 
ScheduledPollEndpoint {
         exchange.getIn().setHeader(GoogleMailStreamConstants.MAIL_ID, 
mail.getId());
         List<MessagePart> parts = mail.getPayload().getParts();
         if (parts != null && parts.get(0).getBody().getData() != null) {
-            byte[] bodyBytes = 
Base64.decodeBase64(parts.get(0).getBody().getData().trim().toString()); // get 
                                                                                
                                      // body
+            byte[] bodyBytes = 
Base64.decodeBase64(parts.get(0).getBody().getData().trim().toString()); 
             String body = new String(bodyBytes, StandardCharsets.UTF_8);
             message.setBody(body);
         }

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to