Program: 118832
Project: 118832
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;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return "String_Node_Str";
        }
      }
 else       if (IComponentConstants.QUERYMODE.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.QUERY_QUERY;
        }
      }
 else       if (IComponentConstants.OUTPUTACTION.equals(value)) {
        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;
      if (IComponentConstants.SCHEMA.equals(value)) {
        if (table != null) {
          tableName=table.getTableName();
          if (tableName != null) {
            return table.getId() + "String_Node_Str" + tableName;
          }
        }
      }
 else       if (IComponentConstants.MODULENAME.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          if (table != null) {
            tableName=table.getTableName();
            if (tableName == null) {
              tableName=table.getLabel();
            }
            return tableName;
          }
        }
      }
 else       if (IComponentConstants.QUERYMODE.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.QUERY_QUERY;
        }
      }
 else       if (IComponentConstants.OUTPUTACTION.equals(value)) {
        if (ComponentsUtils.getGenericPropertyValue(componentProperties,value) != null) {
          return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
        }
 else {
          return IComponentConstants.ACTION_INSERT;
        }
      }
 else {
        return ComponentsUtils.getGenericPropertyValue(componentProperties,value);
      }
    }
  }
  return null;
}