Fix potential crash in unit test

This commit is contained in:
Nyall Dawson 2018-07-10 09:03:34 +10:00
parent 1134386825
commit f640c48231

View File

@ -151,7 +151,7 @@ void QgsProcessingToolboxModel::rebuild()
void QgsProcessingToolboxModel::repopulateRecentAlgorithms( bool resetting )
{
if ( !mRecentNode )
if ( !mRecentNode || !mRecentLog )
return;
QModelIndex recentIndex = index( 0, 0 );