Changeset 2705 for trunk/external-alma


Ignore:
Timestamp:
12/20/12 19:51:04 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CSV-2216

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: run importasdm with singledish=True

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on ASDMReader::setMainRow. Handling the case when
asdm::MainTable.getByContext() returns null pointer.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/asdm2ASAP/ASDMReader.cc

    r2618 r2705  
    551551  Tag configDescTag( (unsigned int)configDescId, TagType::ConfigDescription ) ;
    552552  Tag fieldTag( (unsigned int)fieldId, TagType::Field ) ;
    553   mainRow_ = casa::Vector<MainRow *>( *(asdm_->getMain().getByContext( configDescTag, fieldTag ) ) ) ;
     553  vector<MainRow *> *rows = asdm_->getMain().getByContext( configDescTag, fieldTag );
     554  if (rows == 0)
     555    return false;
     556  mainRow_ = casa::Vector<MainRow *>( *rows ) ;
    554557 
    555558  return true ;
Note: See TracChangeset for help on using the changeset viewer.