summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-workflow/src
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-workflow/src')
-rw-r--r--ecomp-sdk/epsdk-workflow/src/main/java/org/onap/portalsdk/workflow/services/WorkflowScheduleExecutor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-workflow/src/main/java/org/onap/portalsdk/workflow/services/WorkflowScheduleExecutor.java b/ecomp-sdk/epsdk-workflow/src/main/java/org/onap/portalsdk/workflow/services/WorkflowScheduleExecutor.java
index b97a00b4..1cb535c7 100644
--- a/ecomp-sdk/epsdk-workflow/src/main/java/org/onap/portalsdk/workflow/services/WorkflowScheduleExecutor.java
+++ b/ecomp-sdk/epsdk-workflow/src/main/java/org/onap/portalsdk/workflow/services/WorkflowScheduleExecutor.java
@@ -85,7 +85,8 @@ public class WorkflowScheduleExecutor {
while ((cp = bufferedReader.read()) != -1)
sb.append((char) cp);
bufferedReader.close();
- in.close();
+ if(in != null)
+ in.close();
}
} catch (Exception e) {
logger.error(EELFLoggerDelegate.errorLogger, "get_fromURL failed", e);