A small patch (that prevents a crash on certain datasets). Your line
numbers will certainly be different, but it should work.


--- s57reader.cpp   
+++ s57reader.cpp   
@@ -2313,7 +2313,7 @@
 /* -------------------------------------------------------------------- */
 /*      Add the end node.                                               */
 /* -------------------------------------------------------------------- */
-            if( poVRPT->GetRepeatCount() > 1 )
+            if( (poVRPT != NULL) && poVRPT->GetRepeatCount() > 1 )
             {
                 int nVC_RCID = ParseName( poVRPT, 1 );
                 double dfX, dfY;


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to