Changeset 3030


Ignore:
Timestamp:
Apr 21, 2013, 3:09:00 AM (10 years ago)
Author:
Peter
Message:

refs #746. avoid false positive throws

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamRead.cc

    r3029 r3030  
    9494    assert(bam_);
    9595    uint8_t* s = bam_aux_get(bam_, tag);
    96     if (s)
    97       bam_aux_del(bam_, s);
    98     std::stringstream msg("BamRead::aux_del: absent tag: ");
    99     msg << "'" << tag << "'";
    100     throw utility::runtime_error(msg.str());
     96    if (!s) {
     97      std::stringstream msg("BamRead::aux_del: absent tag: ");
     98      msg << "'" << tag << "'";
     99      throw utility::runtime_error(msg.str());
     100    }
     101    bam_aux_del(bam_, s);
    101102  }
    102103
Note: See TracChangeset for help on using the changeset viewer.