Changeset 1941


Ignore:
Timestamp:
Apr 18, 2013, 2:59:05 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #424: Select RNA items for library preparation

Fixed a NullPointerException? when selecting Stratagene, which doesn't have RNAQC child items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/Rna.java

    r1940 r1941  
    329329  public Float loadRnaQc(DbControl dc)
    330330  {
     331    Float rqs = null;
     332    Float rin = null;
     333   
    331334    Extract qc = findLastRnaQc(dc);
    332    
    333     Float rqs = (Float)Annotationtype.CA_RQS.getAnnotationValue(dc, qc);
    334     Float rin = (Float)Annotationtype.BA_RIN.getAnnotationValue(dc, qc);
    335    
    336     if (rqs != null) setAnnotation("rqs", rqs);
    337     if (rin != null) setAnnotation("rin", rin);
    338    
     335    if (qc != null)
     336    {
     337      rqs = (Float)Annotationtype.CA_RQS.getAnnotationValue(dc, qc);
     338      rin = (Float)Annotationtype.BA_RIN.getAnnotationValue(dc, qc);
     339      if (rqs != null) setAnnotation("rqs", rqs);
     340      if (rin != null) setAnnotation("rin", rin);
     341    }
    339342    return rqs != null ? rqs : rin;
    340343  }
Note: See TracChangeset for help on using the changeset viewer.