fix for assert

Andrea Nicotra nicotra.andrea at gmail.com
Fri Nov 20 09:28:58 UTC 2009


hi, I want give mi contribute to kdevelop bugfix and develop .

today I found an assert on startup

ASSERT: "doc" in file
/home/andrea/workspace/svn/kdevplatform/shell/documentationcontroller.cpp,
line 132

here my fix

--- svn/kdevplatform/shell/documentationcontroller.cpp   (revisione 1051795)
+++svn/kdevplatform/shell/documentationcontroller.cpp   (copia locale)
@@ -129,8 +129,10 @@
     foreach(IPlugin* p, plugins)
     {
         IDocumentationProvider
*doc=dynamic_cast<IDocumentationProvider*>(p);
-        Q_ASSERT(doc);
-        ret.append(doc);
+       if(doc) {
+               Q_ASSERT(doc);
+               ret.append(doc);
+       }
     }
     return ret;
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20091120/b1051149/attachment.html>


More information about the KDevelop-devel mailing list