Skip to content
Permalink
Browse files

fix NULL pointer assigment.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15109 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
stopa85
stopa85 committed Jan 31, 2011
1 parent cf14052 commit cdf993cb8d20d50f80dcc7855477babd29f24e3f
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/plugins/roadgraph/shortestpathwidget.cpp
@@ -227,6 +227,11 @@ bool RgShortestPathWidget::getPath( AdjacencyMatrix& matrix, QgsPoint& p1, QgsPo
builder.setDestinationCrs( mPlugin->iface()->mapCanvas()->mapRenderer()->destinationSrs() );
{
const RgGraphDirector *director = mPlugin->director();
if ( director == NULL )
{
QMessageBox::critical( this, tr( "Plugin isn't configured" ), tr( "Plugin isn't configured!" ) );
return false;
}
director->makeGraph( &builder );

// not need

0 comments on commit cdf993c

Please sign in to comment.
You can’t perform that action at this time.