[Kde-pim] what is to do at migration if a list is empty

Guy Maurel guy-kde at maurel.de
Sat Oct 1 18:04:00 BST 2011


Hello!

Working on the kmail-migrator I might have found a problem.
Have a look at the file 
  kdepimlibs/akonadi/specialcollectionshelperjobs.cpp
at 
  DefaultResourceJobPrivate::collectionFetchResult( KJob *job )

I get a job with NO collection. 
  collections.count() is zero.

The loop 
  foreach ( const Collection &collection, collections ) {
is not entered, so the values in the variable
  resourceCollection
are not defined, but at line 404 a use of it is made:
  if ( !resourceCollection.isValid() ) {

and produce an error:
    q->setError( Job::Unknown );
    q->setErrorText( i18n( "Failed to fetch the resource collection." ) );

I think, it cannot be correct!
BUT, what is to do.
Does anybody knows this part enought, to make a proposal?
-- 
guy
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list