]> cloud.milkyroute.net Git - dolphin.git/commitdiff
- Fix crash found while investigating https://bugs.kde.org/show_bug.cgi?id=170927
authorSimon Paul St James <kdedevel@etotheipiplusone.com>
Wed, 15 Oct 2008 17:47:27 +0000 (17:47 +0000)
committerSimon Paul St James <kdedevel@etotheipiplusone.com>
Wed, 15 Oct 2008 17:47:27 +0000 (17:47 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=871808

src/folderexpander.cpp

index f7b73c1f5d3eb3c45ed875f5b797524e49556ad5..89abb91b18df641fc4456c9ffc2cf880b6097ca3 100644 (file)
@@ -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()) {