Summary: | crash in CustomProjectPart::populateProject populating new project | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Marc Unangst <mju> |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 3.0.2 | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: |
Description
Marc Unangst
2004-03-31 03:30:40 UTC
This looks exactly like bug #75943. I'm guessing there is a directory in there you are not allowed to enter too? CVS commit by dagerbo: Don't crash when we don't have permission to read a directory. CCMAIL: 78776-done@bugs.kde.org M +16 -13 customprojectpart.cpp 1.73 --- kdevelop/buildtools/custommakefiles/customprojectpart.cpp #1.72:1.73 @@ -273,4 +273,6 @@ void CustomProjectPart::populateProject( kdDebug(9025) << "Examining: " << dir.path() << endl; const QFileInfoList *dirEntries = dir.entryInfoList(); + if ( dirEntries ) + { QPtrListIterator<QFileInfo> it(*dirEntries); for (; it.current(); ++it) { @@ -288,4 +290,5 @@ void CustomProjectPart::populateProject( } } + } } while (!s.isEmpty()); CVS commit by dagerbo: BACKPORT Don't crash when we don't have permission to read a directory. CCMAIL: 78776@bugs.kde.org M +16 -13 customprojectpart.cpp 1.68.2.3 --- kdevelop/buildtools/custommakefiles/customprojectpart.cpp #1.68.2.2:1.68.2.3 @@ -273,4 +273,6 @@ void CustomProjectPart::populateProject( kdDebug(9025) << "Examining: " << dir.path() << endl; const QFileInfoList *dirEntries = dir.entryInfoList(); + if ( dirEntries ) + { QPtrListIterator<QFileInfo> it(*dirEntries); for (; it.current(); ++it) { @@ -288,4 +290,5 @@ void CustomProjectPart::populateProject( } } + } } while (!s.isEmpty()); That did indeed solve the crash; thanks for the quick reply! |