Program: 53002
Project: 53002
Buggy source:
@Override public MetaInfo getInfo(Class component,Language lang) throws DaoException {
  Map<Language,MetaInfo> langInfos=counters.get(component);
  if (langInfos == null) {
synchronized (counters) {
      if (!counters.containsKey(component)) {
        langInfos=new ConcurrentHashMap<Language,MetaInfo>();
        counters.put(component,langInfos);
      }
    }
  }
  Object langKey=(lang == null ? NULL_KEY : lang);
  MetaInfo info=langInfos.get(langKey);
  if (info == null) {
synchronized (langInfos) {
      if (langInfos.containsKey(langKey)) {
        info=langInfos.get(langKey);
      }
 else {
        Connection conn=null;
        try {
          conn=ds.getConnection();
          DSLContext context=DSL.using(conn,dialect);
          Condition langCondition=(lang == null) ? Tables.META_INFO.LANG_ID.isNull() : Tables.META_INFO.LANG_ID.eq(lang.getId());
          Record3<Integer,Integer,Timestamp> record=context.select(Tables.META_INFO.NUM_RECORDS,Tables.META_INFO.NUM_ERRORS,Tables.META_INFO.LAST_UPDATED).from(Tables.META_INFO).where(Tables.META_INFO.COMPONENT.eq(component.getSimpleName())).and(langCondition).fetchOne();
          if (record == null) {
            info=new MetaInfo(component,lang);
          }
 else {
            info=new MetaInfo(component,lang,record.value1(),record.value2(),record.value3());
          }
        }
 catch (        SQLException e) {
          throw new DaoException(e);
        }
 finally {
          if (conn != null) {
            quietlyCloseConn(conn);
          }
        }
        ((Map)langInfos).put(langKey,info);
      }
    }
  }
  return info;
}

Fixed version (ground truth):
@Override public MetaInfo getInfo(Class component,Language lang) throws DaoException {
  Map<Language,MetaInfo> langInfos=counters.get(component);
  if (langInfos == null) {
synchronized (counters) {
      if (!counters.containsKey(component)) {
        langInfos=new ConcurrentHashMap<Language,MetaInfo>();
        counters.put(component,langInfos);
      }
 else {
        langInfos=counters.get(component);
      }
    }
  }
  Object langKey=(lang == null ? NULL_KEY : lang);
  MetaInfo info=langInfos.get(langKey);
  if (info == null) {
synchronized (langInfos) {
      if (langInfos.containsKey(langKey)) {
        info=langInfos.get(langKey);
      }
 else {
        Connection conn=null;
        try {
          conn=ds.getConnection();
          DSLContext context=DSL.using(conn,dialect);
          Condition langCondition=(lang == null) ? Tables.META_INFO.LANG_ID.isNull() : Tables.META_INFO.LANG_ID.eq(lang.getId());
          Record3<Integer,Integer,Timestamp> record=context.select(Tables.META_INFO.NUM_RECORDS,Tables.META_INFO.NUM_ERRORS,Tables.META_INFO.LAST_UPDATED).from(Tables.META_INFO).where(Tables.META_INFO.COMPONENT.eq(component.getSimpleName())).and(langCondition).fetchOne();
          if (record == null) {
            info=new MetaInfo(component,lang);
          }
 else {
            info=new MetaInfo(component,lang,record.value1(),record.value2(),record.value3());
          }
        }
 catch (        SQLException e) {
          throw new DaoException(e);
        }
 finally {
          if (conn != null) {
            quietlyCloseConn(conn);
          }
        }
        ((Map)langInfos).put(langKey,info);
      }
    }
  }
  return info;
}