From kde-commits Thu Jul 31 22:06:02 2008 From: Will Stephenson Date: Thu, 31 Jul 2008 22:06:02 +0000 To: kde-commits Subject: KDE/kdepim/kresources/groupwise/soap Message-Id: <1217541962.670844.14889.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121754197128156 SVN commit 840344 by wstephens: safety - don't crash if the addressee list is empty M +1 -1 incidenceconverter.cpp --- trunk/KDE/kdepim/kresources/groupwise/soap/incidenceconverter.cpp #840343:840344 @@ -476,7 +476,7 @@ kDebug() <<"IncidenceConverter::setAttendees(), adding" << (*it)->fullName(); QString uuid; QList addList = KABC::StdAddressBook::self()->findByEmail( (*it)->email() ); - if ( !addList.first().isEmpty() ) + if ( !addList.isEmpty() && !addList.first().isEmpty() ) uuid = addList.first().custom( "GWRESOURCE", "UUID" ); //uuid may be mandatory for the recipients list to be stored on the server... item->distribution->recipients->recipient.push_back( createRecipient( (*it)->name(), (*it)->email(), uuid ) ); }