Summary: | Kdevelop crashes when typing a dot at the end of a comment | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | tulkas |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | dypang |
Priority: | NOR | ||
Version: | 3.0.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
tulkas
2004-01-21 11:27:12 UTC
Oops, I realised a bit too late that my kdevelop-version isn't shown there, it's kdevelop-3.0.0_rc1. Verified. Subject: kdevelop/languages/cpp CVS commit by dagerbo: Quick fix for bug 73116. The parser gets confused sometimes, better have a sanity check. CCMAIL: 73116-done@bugs.kde.org M +7 -1 cppcodecompletion.cpp 1.142 --- kdevelop/languages/cpp/cppcodecompletion.cpp #1.141:1.142 @@ -789,5 +789,11 @@ CppCodeCompletion::completeText( ) QStringList nested; - QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList(); + + QPtrList<ClassOrNamespaceNameAST> l; + if ( name ) + { + l = name->classOrNamespaceNameList(); + } +// QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList(); QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l ); while( nameIt.current() ){ The same here. It does not always crash when I press the dot key, but it happens rather frequently and unexpectedly. It is really annoying. It has been around 2 months. @dypang: This bug report is over 10 years old(!). Please report your problem in a new one and attach a backtrace. |