Program: 166011
Project: 166011
Buggy source:
private void readMainConfig(){
  Configuration cfg=mainConfig;
  try {
    cfg.load();
    cfg.addCustomCategoryComment(GeneralConfiguration.CATEGORY_GENERAL,"String_Node_Str");
    cfg.addCustomCategoryComment(CrafterConfiguration.CATEGORY_CRAFTER,"String_Node_Str");
    cfg.addCustomCategoryComment(StorageScannerConfiguration.CATEGORY_STORAGE_MONITOR,"String_Node_Str");
    cfg.addCustomCategoryComment(NetworkMonitorConfiguration.CATEGORY_NETWORK_MONITOR,"String_Node_Str");
    cfg.addCustomCategoryComment(TeleportConfiguration.CATEGORY_TELEPORTER,"String_Node_Str");
    cfg.addCustomCategoryComment(EndergenicConfiguration.CATEGORY_ENDERGENIC,"String_Node_Str");
    cfg.addCustomCategoryComment(ShieldConfiguration.CATEGORY_SHIELD,"String_Node_Str");
    cfg.addCustomCategoryComment(DimletConfiguration.CATEGORY_DIMLETS,"String_Node_Str");
    cfg.addCustomCategoryComment(DimletConstructionConfiguration.CATEGORY_DIMLET_CONSTRUCTION,"String_Node_Str");
    cfg.addCustomCategoryComment(EnvironmentalConfiguration.CATEGORY_ENVIRONMENTAL,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_RARITY,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_GENERAL,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_DIMLETSETTINGS,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPERARIRTY,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPETICKCOST,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPERFCREATECOST,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPERFMAINTAINCOST,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_MOBSPAWNS,"String_Node_Str");
    GeneralConfiguration.init(cfg);
    NetworkMonitorConfiguration.init(cfg);
    CrafterConfiguration.init(cfg);
    StorageScannerConfiguration.init(cfg);
    TeleportConfiguration.init(cfg);
    EndergenicConfiguration.init(cfg);
    ShieldConfiguration.init(cfg);
    DimletConfiguration.init(cfg);
    DimletConstructionConfiguration.init(cfg);
    EnvironmentalConfiguration.init(cfg);
    ScreenConfiguration.init(cfg);
    KnownDimletConfiguration.initGeneralConfig(cfg);
    DimletRandomizer.initTypeRarity(cfg);
    DimletCosts.initTypeRfCreateCost(cfg);
    DimletCosts.initTypeRfMaintainCost(cfg);
    DimletCosts.initTypeTickCost(cfg);
  }
 catch (  Exception e1) {
    FMLLog.log(Level.ERROR,e1,"String_Node_Str");
  }
 finally {
    if (cfg.hasChanged()) {
      cfg.save();
    }
  }
}

Fixed version (ground truth):
private void readMainConfig(){
  Configuration cfg=mainConfig;
  try {
    cfg.load();
    cfg.addCustomCategoryComment(GeneralConfiguration.CATEGORY_GENERAL,"String_Node_Str");
    cfg.addCustomCategoryComment(CrafterConfiguration.CATEGORY_CRAFTER,"String_Node_Str");
    cfg.addCustomCategoryComment(StorageScannerConfiguration.CATEGORY_STORAGE_MONITOR,"String_Node_Str");
    cfg.addCustomCategoryComment(NetworkMonitorConfiguration.CATEGORY_NETWORK_MONITOR,"String_Node_Str");
    cfg.addCustomCategoryComment(TeleportConfiguration.CATEGORY_TELEPORTER,"String_Node_Str");
    cfg.addCustomCategoryComment(EndergenicConfiguration.CATEGORY_ENDERGENIC,"String_Node_Str");
    cfg.addCustomCategoryComment(ShieldConfiguration.CATEGORY_SHIELD,"String_Node_Str");
    cfg.addCustomCategoryComment(DimletConfiguration.CATEGORY_DIMLETS,"String_Node_Str");
    cfg.addCustomCategoryComment(DimletConstructionConfiguration.CATEGORY_DIMLET_CONSTRUCTION,"String_Node_Str");
    cfg.addCustomCategoryComment(EnvironmentalConfiguration.CATEGORY_ENVIRONMENTAL,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_RARITY,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_GENERAL,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPERARIRTY,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPETICKCOST,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPERFCREATECOST,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_TYPERFMAINTAINCOST,"String_Node_Str");
    cfg.addCustomCategoryComment(KnownDimletConfiguration.CATEGORY_MOBSPAWNS,"String_Node_Str");
    GeneralConfiguration.init(cfg);
    NetworkMonitorConfiguration.init(cfg);
    CrafterConfiguration.init(cfg);
    StorageScannerConfiguration.init(cfg);
    TeleportConfiguration.init(cfg);
    EndergenicConfiguration.init(cfg);
    ShieldConfiguration.init(cfg);
    DimletConfiguration.init(cfg);
    DimletConstructionConfiguration.init(cfg);
    EnvironmentalConfiguration.init(cfg);
    ScreenConfiguration.init(cfg);
    KnownDimletConfiguration.initGeneralConfig(cfg);
    DimletCosts.initTypeRfCreateCost(cfg);
    DimletCosts.initTypeRfMaintainCost(cfg);
    DimletCosts.initTypeTickCost(cfg);
  }
 catch (  Exception e1) {
    FMLLog.log(Level.ERROR,e1,"String_Node_Str");
  }
 finally {
    if (cfg.hasChanged()) {
      cfg.save();
    }
  }
}