diff options
author | Smokowski, Kevin (ks6305) <ks6305@us.att.com> | 2021-04-05 15:29:14 +0000 |
---|---|---|
committer | Smokowski, Kevin (ks6305) <ks6305@us.att.com> | 2021-04-05 15:29:14 +0000 |
commit | b7ec07f694f42f50fd2d32e1bed919e9ca27aa53 (patch) | |
tree | 1a7cc945595dbeed3f0ad6d702eeecd80af5406e /plugins/restapi-call-node/provider/src | |
parent | 1424a8e6afe0dfa1664b694dd22afeeb4fba7f4c (diff) |
avoid potential NPE in RestapiCallNode
avoid potential NPE in class sendRequest method sendRequest
Issue-ID: CCSDK-3246
Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@us.att.com>
Change-Id: I3b378336887b43c55ec2a3cdb8a82a4578eb6260
Diffstat (limited to 'plugins/restapi-call-node/provider/src')
-rwxr-xr-x | plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java b/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java index e42dfa484..ad74b02de 100755 --- a/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java +++ b/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java @@ -531,7 +531,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin { } } catch (SvcLogicException e) { boolean shouldRetry = false; - if (e.getCause().getCause() instanceof SocketException) { + if (e.getCause() != null && (e.getCause() instanceof SocketException || (e.getCause().getCause() != null && e.getCause().getCause() instanceof SocketException))) { shouldRetry = true; } |