Changeset 13636

Show
Ignore:
Timestamp:
01/31/08 11:08:20 (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
  • trunk/gdal/swig/include/csharp/typemaps_csharp.i

    r13436 r13636  
    185185%typemap(in) char **options %{ $1 = ($1_ltype)$input; %} 
    186186%typemap(out) char **options %{ $result = $1; %} 
    187 %typemap(csin) char **options "new $modulePINVOKE.StringListMarshal($csinput)._ar
     187%typemap(csin) char **options "($csinput != null)? new $modulePINVOKE.StringListMarshal($csinput)._ar : null
    188188%typemap(csout, excode=SWIGEXCODE) char**options { 
    189189        /* %typemap(csout) char**options */