Fixing NPE until we are able to phone home in offline mode
@@ -67,7 +67,7 @@ public class DetectPhoneHomeManager {
private void performPhoneHome(final Set<BomToolType> applicableBomToolTypes) {
endPhoneHome();
-
+ if (null != phoneHomeService) {
final PhoneHomeRequestBodyBuilder phoneHomeRequestBodyBuilder = createBuilder();
if (applicableBomToolTypes != null) {
@@ -79,6 +79,7 @@ public class DetectPhoneHomeManager {
phoneHomeResponse = phoneHomeService.startPhoneHome(phoneHomeRequestBody);
}
+ }
public void endPhoneHome() {
if (phoneHomeResponse != null) {
