[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/office/tellico/src
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2010-10-01 3:33:52
Message-ID: 20101001033352.F1A06AC891 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1181449 by rstephenson:

guard against crashes

 M  +1 -1      entryupdater.cpp  


--- trunk/extragear/office/tellico/src/entryupdater.cpp #1181448:1181449
@@ -157,7 +157,7 @@
 //  myDebug() << result_->title << " [" << result_->fetcher->source() << "]";
   m_results.append(UpdateResult(result_, m_fetchers[m_fetchIndex]->updateOverwrite()));
   Data::EntryPtr e = result_->fetchEntry();
-  if(e) {
+  if(e && !m_entriesToUpdate.isEmpty()) {
     m_fetchedEntries.append(e);
     const int match = m_coll->sameEntry(m_entriesToUpdate.front(), e);
     if(match > EntryComparison::ENTRY_PERFECT_MATCH) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic