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
}
} 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;
}