Wrapping the phone home in a try catch
@@ -93,6 +93,7 @@ public class DetectPhoneHomeManager {
private void performPhoneHome(final Set<BomToolType> applicableBomToolTypes) {
endPhoneHome();
if (null != phoneHomeService) {
+ try {
final PhoneHomeRequestBody.Builder phoneHomeRequestBodyBuilder = createBuilder();
if (applicableBomToolTypes != null) {
@@ -103,6 +104,9 @@ public class DetectPhoneHomeManager {
final PhoneHomeRequestBody phoneHomeRequestBody = phoneHomeRequestBodyBuilder.build();
phoneHomeResponse = phoneHomeService.startPhoneHome(phoneHomeRequestBody);
+ } catch (IllegalStateException e) {
+ logger.debug(e.getMessage(), e);
+ }
}
}
