Program: 36906
Project: 36906
Buggy source:
@Override public void onMessageReceived(RemoteMessage remoteMessage){
  super.onMessageReceived(remoteMessage);
  Map<String,String> data=remoteMessage.getData();
  String requestType=data.get(MESSAGE_TYPE);
  if (requestType == null) {
    return;
  }
  if (requestType.equals(CALL_REQUEST_TYPE)) {
    AnalyticsHelper analyticsHelper=new AnalyticsHelper(((AnalyticsApplication)getApplication()).getDefaultTracker());
    ConnectivityHelper connectivityHelper=ConnectivityHelper.get(this);
    if (connectivityHelper.hasNetworkConnection() && connectivityHelper.hasFastData()) {
      String number=data.get(PHONE_NUMBER);
      if (number != null && (number.equalsIgnoreCase(SUPPRESSED) || number.toLowerCase().contains("String_Node_Str"))) {
        number=getString(R.string.supressed_number);
      }
      startSipService(number,data.get(CALLER_ID) != null ? data.get(CALLER_ID) : "String_Node_Str",data.get(RESPONSE_URL) != null ? data.get(RESPONSE_URL) : "String_Node_Str",data.get(REQUEST_TOKEN) != null ? data.get(REQUEST_TOKEN) : "String_Node_Str",data.get(MESSAGE_START_TIME) != null ? data.get(MESSAGE_START_TIME) : "String_Node_Str");
    }
 else {
      String analyticsLabel=connectivityHelper.getAnalyticsLabel();
      analyticsHelper.sendEvent(getString(R.string.analytics_event_category_middleware),getString(R.string.analytics_event_action_middleware_rejected),analyticsLabel);
      replyServer(data.get(RESPONSE_URL) != null ? data.get(RESPONSE_URL) : "String_Node_Str",data.get(REQUEST_TOKEN) != null ? data.get(REQUEST_TOKEN) : "String_Node_Str",data.get(MESSAGE_START_TIME) != null ? data.get(MESSAGE_START_TIME) : "String_Node_Str",false);
    }
  }
 else   if (requestType.equals(MESSAGE_REQUEST_TYPE)) {
  }
}

Fixed version (ground truth):
@Override public void onMessageReceived(RemoteMessage remoteMessage){
  super.onMessageReceived(remoteMessage);
  Map<String,String> data=remoteMessage.getData();
  String requestType=data.get(MESSAGE_TYPE);
  if (requestType == null) {
    return;
  }
  if (requestType.equals(CALL_REQUEST_TYPE)) {
    AnalyticsHelper analyticsHelper=new AnalyticsHelper(((AnalyticsApplication)getApplication()).getDefaultTracker());
    ConnectivityHelper connectivityHelper=ConnectivityHelper.get(this);
    if (!SipService.sipServiceActive && connectivityHelper.hasNetworkConnection() && connectivityHelper.hasFastData()) {
      String number=data.get(PHONE_NUMBER);
      if (number != null && (number.equalsIgnoreCase(SUPPRESSED) || number.toLowerCase().contains("String_Node_Str"))) {
        number=getString(R.string.supressed_number);
      }
      startSipService(number,data.get(CALLER_ID) != null ? data.get(CALLER_ID) : "String_Node_Str",data.get(RESPONSE_URL) != null ? data.get(RESPONSE_URL) : "String_Node_Str",data.get(REQUEST_TOKEN) != null ? data.get(REQUEST_TOKEN) : "String_Node_Str",data.get(MESSAGE_START_TIME) != null ? data.get(MESSAGE_START_TIME) : "String_Node_Str");
    }
 else {
      String analyticsLabel=connectivityHelper.getAnalyticsLabel();
      analyticsHelper.sendEvent(getString(R.string.analytics_event_category_middleware),getString(R.string.analytics_event_action_middleware_rejected),analyticsLabel);
      replyServer(data.get(RESPONSE_URL) != null ? data.get(RESPONSE_URL) : "String_Node_Str",data.get(REQUEST_TOKEN) != null ? data.get(REQUEST_TOKEN) : "String_Node_Str",data.get(MESSAGE_START_TIME) != null ? data.get(MESSAGE_START_TIME) : "String_Node_Str",false);
    }
  }
 else   if (requestType.equals(MESSAGE_REQUEST_TYPE)) {
  }
}