folderwizard: fix possible use of null pointer

Coverity issue 12907
This commit is contained in:
Olivier Goffart 2014-06-20 11:29:28 +02:00
parent 83171bf025
commit 1e788d3d60

View file

@ -170,8 +170,8 @@ bool FolderWizardLocalPath::isComplete() const
bool goon = true;
while( goon && i != map.constEnd() ) {
Folder *f = i.value();
qDebug() << "Checking local alias: " << f->alias();
if( f ) {
qDebug() << "Checking local alias: " << f->alias();
if( f->alias() == alias ) {
warnStrings.append( tr("The alias <i>%1</i> is already in use. Please pick another alias.").arg(alias) );
isOk = false;