Program: 118780
Project: 118780
Buggy source:
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      String paramName=ComponentsUtils.getPropertyName(value);
      if (value != null && value.startsWith(componentProperties.getName())) {
        if (value.indexOf(IComponentConstants.EXP_SEPARATOR) != -1) {
          value=value.substring(componentProperties.getName().length() + 1,value.length());
        }
      }
      if (IComponentConstants.SCHEMA.equalsIgnoreCase(paramName)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equalsIgnoreCase(paramName)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName == null) {
            tableName=table.getLabel();
          }
          return tableName;
        }
      }
 else       if (IComponentConstants.QUERYMODE.equalsIgnoreCase(paramName)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.QUERY_QUERY;
        }
      }
 else       if (IComponentConstants.OUTPUTACTION.equalsIgnoreCase(paramName)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.ACTION_INSERT;
        }
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private Object getGenericRepositoryValue(GenericConnection connection,String value,IMetadataTable table){
  if (connection == null) {
    return null;
  }
  String serialized=connection.getCompProperties();
  if (serialized != null) {
    Deserialized fromSerialized=ComponentProperties.fromSerialized(serialized);
    if (fromSerialized != null) {
      ComponentProperties componentProperties=fromSerialized.properties;
      String tableName=null;
      String paramName=ComponentsUtils.getPropertyName(value);
      if (value != null && value.startsWith(componentProperties.getName())) {
        if (value.indexOf(IComponentConstants.EXP_SEPARATOR) != -1) {
          value=value.substring(componentProperties.getName().length() + 1,value.length());
        }
      }
      if (IComponentConstants.SCHEMA.equalsIgnoreCase(paramName)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equalsIgnoreCase(paramName)) {
        if (table != null) {
          tableName=table.getLabel();
          if (tableName == null) {
            tableName=table.getLabel();
          }
          return tableName;
        }
      }
 else       if (IComponentConstants.QUERYMODE.equalsIgnoreCase(paramName)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.QUERY_QUERY;
        }
      }
 else       if (IComponentConstants.OUTPUTACTION.equalsIgnoreCase(paramName)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.ACTION_INSERT;
        }
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}