From kde-core-devel Thu Jun 14 22:13:33 2007 From: David Faure Date: Thu, 14 Jun 2007 22:13:33 +0000 To: kde-core-devel Subject: Re: Assertion in genericServiceTypePtr() when there is no service Message-Id: <200706150013.34059.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=118185927028803 On Thursday 14 June 2007, Jaroslaw Staniek wrote: > Jarosław Staniek said the following, On 2007-06-14 19:22: > > kio (KTrader): KMimeTypeTrader::weightedOffers( Kexi/Handler, Application ) > genericServiceTypePtr = KServiceType::serviceType( genericServiceType ); > Q_ASSERT( genericServiceTypePtr ); > //^^^^^^^ here ^^^^^^^^^ > } > > How about removing this assertion (or replacing with a warning), because > otherwise default "Application" (#2) argument is a nonsense as if it causes > assertion. Well it's not nonsense; a system without the Application servicetype defined is a very broken system, given that this servicetype is installed by kdelibs. Most likely you are hitting the ksycoca bug that I just fixed. Keep in mind that Q_ASSERT helps developers noticing very serious problems. The end user won't hit it. -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).