Bug #13679 2008-04-24 10:58

evgeny

Crash in CodeCompletion after autosave

I have a crash when autosave and code completion are enabled. It happens coz of NULL project pointer passed to NativeParser::ReparseProject. The following patch fixes this for me:
Index: src/plugins/codecompletion/codecompletion.cpp
===================================================================
--- src/plugins/codecompletion/codecompletion.cpp       (revision 5014)
+++ src/plugins/codecompletion/codecompletion.cpp       (working copy)
@@ -1102,7 +1102,7 @@
 //    Manager::Get()->GetLogManager()->DebugLog(_T("CodeCompletion::OnProjectSaved"));

     // reparse project (compiler search dirs might have changed)
-    if (IsAttached() && m_InitDone)
+    if (IsAttached() && m_InitDone && event.GetProject())
     {
        m_NativeParsers.ReparseProject(event.GetProject());
     }
Category
Application::Crash
Group
 
Status
Closed
Close date
2008-04-24 12:13
Assigned to
biplab
biplab 2008-04-24 12:13

This bug is now fixed in HEAD.

Thank you for reporting it.