Changeset 11628

Show
Ignore:
Timestamp:
06/09/07 00:39:43 (1 year ago)
Author:
warmerdam
Message:

Avoid crash when applying updates to records without an existing
ATTF field (bug #1648).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/ogr/ogrsf_frmts/s57/s57reader.cpp

    r10646 r11628  
    24682468        int     nRepeatCount = poSrcATTF->GetRepeatCount(); 
    24692469 
     2470        if( poDstATTF == NULL ) 
     2471        { 
     2472            CPLError( CE_Warning, CPLE_AppDefined, 
     2473                      "Unable to apply ATTF change to target record without an ATTF field (see GDAL/OGR Bug #1648)" ); 
     2474            return FALSE; 
     2475        } 
     2476 
    24702477        poSrcATVLDefn = poSrcATTF->GetFieldDefn()->FindSubfieldDefn( "ATVL" ); 
    24712478