Skip to content

Commit 197a00a

Browse files
committed
Fix incorrect error handling in QgsCircularStringV2* parseCircularString
1 parent e422d89 commit 197a00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/arcgisrest/qgsarcgisrestutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static QgsCircularStringV2* parseCircularString( const QVariantMap& curveData, Q
125125
foreach ( const QVariant& coordData, coordsList )
126126
{
127127
QgsPointV2* point = parsePoint( coordData.toList(), pointType );
128-
if ( points.last() == 0 )
128+
if ( !point )
129129
{
130130
delete point;
131131
return nullptr;

0 commit comments

Comments
 (0)