Summary: | KDevelop crashes when renaming files in project sidebar | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Martin Klapetek <mklapetek> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.0.1 | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin Klapetek
2010-06-24 14:10:26 UTC
commit b82b0b5fab332d90b7dae3fcd68e3829c4700d7c Author: Aleix Pol <aleixpol@kde.org> Date: Mon Aug 30 16:14:38 2010 +0200 Prevent crash while renaming. BUG: 242680 diff --git a/projectmanagers/cmake/cmakemanager.cpp b/projectmanagers/cmake/cmakemanager.cpp index 17c43e6..03de133 100644 --- a/projectmanagers/cmake/cmakemanager.cpp +++ b/projectmanagers/cmake/cmakemanager.cpp @@ -1093,7 +1093,7 @@ bool followUses(KTextEditor::Document* doc, SimpleRange r, const QString& name, Declaration* d=u.usedDeclaration(topctx); - if(d->context()->topContext()->url().toUrl()==lists) + if(d && d->context()->topContext()->url().toUrl()==lists) decls += d; } |