From: Simon Paul St James Date: Wed, 15 Oct 2008 17:47:27 +0000 (+0000) Subject: - Fix crash found while investigating https://bugs.kde.org/show_bug.cgi?id=170927 X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/20587e7f1402c050156aa717413e742d226a3406 - Fix crash found while investigating https://bugs.kde.org/show_bug.cgi?id=170927 svn path=/trunk/KDE/kdebase/apps/; revision=871808 --- diff --git a/src/folderexpander.cpp b/src/folderexpander.cpp index f7b73c1f5..89abb91b1 100644 --- a/src/folderexpander.cpp +++ b/src/folderexpander.cpp @@ -120,6 +120,9 @@ void FolderExpander::autoExpandTimeout() Q_ASSERT(m_dirModel != 0); KFileItem itemToExpand = m_dirModel->itemForIndex(indexToExpand ); + if (itemToExpand.isNull()) + return; + kDebug() << "Need to expand: " << itemToExpand.targetUrl() << " isDir? = " << itemToExpand.isDir(); if (itemToExpand.isDir()) {