You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by on...@apache.org on 2018/07/04 06:38:46 UTC

[camel] 01/01: if channel.getExistStatus() is null, then calling

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

onders pushed a commit to branch CAMEL-12622
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a6aa277e52f83498d06dbecde1e520d502fa450e
Author: önder sezgin <on...@nokia.com>
AuthorDate: Wed Jul 4 09:38:38 2018 +0300

    if channel.getExistStatus() is null, then calling
    
    this constructor may fail due to auto-unboxing with potential NullPointerException
---
 .../src/main/java/org/apache/camel/component/ssh/SshResult.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshResult.java b/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshResult.java
index 35132f6..773a4ec 100644
--- a/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshResult.java
+++ b/components/camel-ssh/src/main/java/org/apache/camel/component/ssh/SshResult.java
@@ -36,13 +36,13 @@ public class SshResult {
     
     private final String command;
     
-    private final int exitValue;
+    private final Integer exitValue;
 
     private final InputStream stdout;
 
     private final InputStream stderr;
     
-    public SshResult(String command, int exitValue, InputStream out, InputStream err) {
+    public SshResult(String command, Integer exitValue, InputStream out, InputStream err) {
         this.command = command;
         this.exitValue = exitValue;
         this.stdout = out;
@@ -53,7 +53,7 @@ public class SshResult {
         return command;
     }
 
-    public int getExitValue() {
+    public Integer getExitValue() {
         return exitValue;
     }