Skip to content
Permalink
Browse files
Added two 0 pointer checks
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14245 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 18, 2010
1 parent b761df0 commit 3cdf4dd31cd99a2b47e430132dea72357889507d
Showing with 8 additions and 1 deletion.
  1. +4 −1 src/core/qgsvectorfilewriter.cpp
  2. +4 −0 src/core/qgsvectorlayer.cpp
@@ -568,7 +568,10 @@ QgsVectorFileWriter::writeAsVectorFormat( QgsVectorLayer* layer,
{
try
{
fet.geometry()->transform( *ct );
if ( fet.geometry() )
{
fet.geometry()->transform( *ct );
}
}
catch ( QgsCsException &e )
{
@@ -3926,6 +3926,10 @@ void QgsVectorLayer::drawFeature( QgsRenderContext &renderContext,
bool needToTrim = false;

QgsGeometry* geom = fet.geometry();
if ( !geom )
{
return;
}
unsigned char* feature = geom->asWkb();

QGis::WkbType wkbType = geom->wkbType();

0 comments on commit 3cdf4dd

Please sign in to comment.