Add a nil check in routing manager client 18/5118/1
authoridanshal <idan.shalom@intl.att.com>
Thu, 19 Nov 2020 08:40:38 +0000 (08:40 +0000)
committeridanshal <idan.shalom@intl.att.com>
Thu, 19 Nov 2020 08:40:44 +0000 (08:40 +0000)
Change-Id: Iec3b7c9357dff2d9f2dbbca00420f4968646eb79
Signed-off-by: idanshal <idan.shalom@intl.att.com>
E2Manager/clients/routing_manager_client.go
E2Manager/container-tag.yaml

index 2625612..1d9dac9 100644 (file)
@@ -119,7 +119,9 @@ func (c *RoutingManagerClient) sendMessage(method string, url string, data inter
                return e2managererrors.NewRoutingManagerError()
        }
 
-       defer resp.Body.Close()
+       if resp.Body != nil {
+               defer resp.Body.Close()
+       }
 
        if resp.StatusCode >= http.StatusOK && resp.StatusCode < http.StatusMultipleChoices {
                c.logger.Infof("[Routing Manager -> E2 Manager] #RoutingManagerClient.sendMessage - success. http status code: %d", resp.StatusCode)
index 2fbc7a5..2f7773e 100644 (file)
@@ -1,4 +1,4 @@
 # The Jenkins job requires a tag to build the Docker image.
 # Global-JJB script assumes this file is in the repo root.
 ---
-tag: 5.4.14
+tag: 5.4.15