Skip to content
Permalink
Browse files

Fix a possible crash in network analyser

  • Loading branch information
nyalldawson committed Dec 5, 2017
1 parent 67a8902 commit 70785f80a338851c3579fb29c9ba319e09dfc870
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/analysis/network/qgsgraphanalyzer.cpp
@@ -24,6 +24,12 @@

void QgsGraphAnalyzer::dijkstra( const QgsGraph *source, int startPointIdx, int criterionNum, QVector<int> *resultTree, QVector<double> *resultCost )
{
if ( startPointIdx < 0 || startPointIdx >= source->vertexCount() )
{
// invalid start point
return;
}

QVector< double > *result = nullptr;
if ( resultCost )
{

0 comments on commit 70785f8

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