Changeset 13637

Show
Ignore:
Timestamp:
01/31/08 11:09:07 (4 months ago)
Author:
tamas
Message:

Fixed that passing null as the options parameter of Driver.CreateCopy? causes access violation (#2185)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/swig/include/csharp/typemaps_csharp.i

    r11540 r13637  
    164164%typemap(in) char **options %{ $1 = ($1_ltype)$input; %} 
    165165%typemap(out) char **options %{ $result = $1; %} 
    166 %typemap(csin) char **options "new $modulePINVOKE.StringListMarshal($csinput)._ar
     166%typemap(csin) char **options "($csinput != null)? new $modulePINVOKE.StringListMarshal($csinput)._ar : null
    167167%typemap(csout, excode=SWIGEXCODE) char**options { 
    168168        /* %typemap(csout) char**options */