Changeset 3742


Ignore:
Timestamp:
Sep 17, 2007, 1:16:49 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #735: PermissionDeniedException? on array design list view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4-stable/src/core/net/sf/basedb/core/ArrayDesign.java

    r3679 r3742  
    532532    array design is an Affymetrix design information in the CDF file is
    533533    used, otherwise the database is queried.
    534     @return The number of features or probesets
     534    @return The number of features or probesets, or -1 if there is an
     535      error getting the number
    535536    @since 2.4
    536537  */
     
    540541    if (hasFeatures())
    541542    {
    542       if (isAffyChip())
     543      try
    543544      {
    544         FusionCDFData cdf = Affymetrix.loadCdfFile(Affymetrix.getCdfFile(this));
    545         numFeatures = cdf.getHeader().getNumProbeSets();
     545        if (isAffyChip())
     546        {
     547          FusionCDFData cdf = Affymetrix.loadCdfFile(Affymetrix.getCdfFile(this));
     548          numFeatures = cdf.getHeader().getNumProbeSets();
     549        }
     550        else
     551        {
     552          numFeatures = getFeatures().count(dc);
     553        }
    546554      }
    547       else
     555      catch (Throwable t)
    548556      {
    549         numFeatures = getFeatures().count(dc);
     557        Application.getLogger().warn("Could not get number of features for array design: " +
     558          this, t);
     559        numFeatures = -1;
    550560      }
    551561    }
Note: See TracChangeset for help on using the changeset viewer.