Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect error handling in QgsCircularStringV2* parseCircularString
  • Loading branch information
manisandro committed Jun 6, 2016
1 parent e422d89 commit 197a00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsarcgisrestutils.cpp
Expand Up @@ -125,7 +125,7 @@ static QgsCircularStringV2* parseCircularString( const QVariantMap& curveData, Q
foreach ( const QVariant& coordData, coordsList )
{
QgsPointV2* point = parsePoint( coordData.toList(), pointType );
if ( points.last() == 0 )
if ( !point )
{
delete point;

This comment has been minimized.

Copy link
@nyalldawson

nyalldawson Jun 6, 2016

Collaborator

@manisandro may as well get rid of this line now ;)

return nullptr;
Expand Down

1 comment on commit 197a00a

@manisandro
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah ;)

Please sign in to comment.