diff options
Diffstat (limited to 'profiles/command')
-rw-r--r-- | profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/ProcessRunner.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/ProcessRunner.java b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/ProcessRunner.java index c0b93bb8..a86a0ff5 100644 --- a/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/ProcessRunner.java +++ b/profiles/command/src/main/java/org/onap/cli/fw/cmd/cmd/ProcessRunner.java @@ -94,7 +94,9 @@ public class ProcessRunner { sb.append(line + System.getProperty("line.separator")); } } finally { - br.close(); + if (br != null) { + br.close(); + } } return sb.toString(); } |