Changeset 3748


Ignore:
Timestamp:
Sep 18, 2007, 9:02:06 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #765: Deleting an Affymetrix raw bioassay from trashcan generates NullPointerException?

File:
1 edited

Legend:

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

    r3679 r3748  
    291291  {
    292292    super.onBeforeCommit(action);
    293     if (action == Transactional.Action.DELETE && getSpots() > 0)
    294     {
    295       RawDataBatcher rdb = RawDataBatcher.getNew(getDbControl(), this);
    296       rdb.deleteAll();
     293    if (action == Transactional.Action.DELETE)
     294    {
     295      if (getRawDataType().isStoredInDb() && getSpots() > 0)
     296      {
     297        RawDataBatcher rdb = RawDataBatcher.getNew(getDbControl(), this);
     298        rdb.deleteAll();
     299      }
    297300    }
    298301  }
Note: See TracChangeset for help on using the changeset viewer.