Skip to content

Commit fb872c3

Browse files
author
stopa85
committedJan 31, 2011
fix NULL pointer assigment.
git-svn-id: http://svn.osgeo.org/qgis/trunk@15109 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0f0a966 commit fb872c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/plugins/roadgraph/shortestpathwidget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ bool RgShortestPathWidget::getPath( AdjacencyMatrix& matrix, QgsPoint& p1, QgsPo
227227
builder.setDestinationCrs( mPlugin->iface()->mapCanvas()->mapRenderer()->destinationSrs() );
228228
{
229229
const RgGraphDirector *director = mPlugin->director();
230+
if ( director == NULL )
231+
{
232+
QMessageBox::critical( this, tr( "Plugin isn't configured" ), tr( "Plugin isn't configured!" ) );
233+
return false;
234+
}
230235
director->makeGraph( &builder );
231236

232237
// not need

0 commit comments

Comments
 (0)
Please sign in to comment.