[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 247625] kdevelop crashing during startup due to failed assert
From: Milian Wolff <mail () milianw ! de>
Date: 2010-12-24 11:23:17
Message-ID: 20101224112317.D5CB67844B () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=247625
Milian Wolff <mail@milianw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WORKSFORME |FIXED
--- Comment #2 from Milian Wolff <mail milianw de> 2010-12-24 12:23:15 ---
commit e37c8086ad35b6654f7488f4fe88484c7c414eba
branch 1.2
Author: Milian Wolff <mail@milianw.de>
Date: Fri Dec 24 12:22:24 2010 +0100
don't assert when a plugin gets updated from ProviderProvider to Provider
or vice versa and the user forgot to rerun kbuildsycoca4
BUG: 247625
diff --git a/shell/documentationcontroller.cpp
b/shell/documentationcontroller.cpp
index dab072e..a998302 100644
--- a/shell/documentationcontroller.cpp
+++ b/shell/documentationcontroller.cpp
@@ -130,14 +130,20 @@ QList< IDocumentationProvider* >
DocumentationController::documentationProviders
foreach(IPlugin* p, pluginsProvider)
{
IDocumentationProviderProvider
*docProvider=p->extension<IDocumentationProviderProvider>();
- Q_ASSERT(docProvider);
+ if (!docProvider) {
+ kWarning() << "plugin" << p << "does not implement
ProviderProvider extension, rerun kbuildsycoca4";
+ continue;
+ }
ret.append(docProvider->providers());
}
foreach(IPlugin* p, plugins)
{
IDocumentationProvider *doc=p->extension<IDocumentationProvider>();
- Q_ASSERT(doc);
+ if (!doc) {
+ kWarning() << "plugin" << p << "does not implement Provider
extension, rerun kbuildsycoca4";
+ continue;
+ }
ret.append(doc);
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic