Changeset 3997


Ignore:
Timestamp:
Nov 26, 2007, 7:59:39 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #840: MeV leaves an unclosed DbControl?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/plugins/org/tigr/microarray/mev/launch_mev.jsp

    r3679 r3997  
    5353                                                      request.getRemoteAddr());
    5454DbControl dc=sc.newDbControl();
    55 BioAssaySet bas=BioAssaySet.getById(dc, bioassaysetId);
    56 BioAssaySetExporter base=new BioAssaySetExporter();
    57 final int row_idx= 1 + base.getExperimentalFactors(dc,bas).size();
     55int row_idx = 1;
     56try
     57{
     58  BioAssaySet bas=BioAssaySet.getById(dc, bioassaysetId);
     59  BioAssaySetExporter base=new BioAssaySetExporter();
     60  row_idx += base.getExperimentalFactors(dc,bas).size();
     61}
     62finally
     63{
     64  if (dc != null) dc.close();
     65}
    5866%>
    5967
Note: See TracChangeset for help on using the changeset viewer.