Summary: | Indexer fast crashes with NPE if enclosing class definition is not available. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] CDT | Reporter: | Tobias Hahn <tobias.hahn> | ||||
Component: | cdt-core | Assignee: | Project Inbox <cdt-core-inbox> | ||||
Status: | RESOLVED FIXED | QA Contact: | Doug Schaefer <cdtdoug> | ||||
Severity: | normal | ||||||
Priority: | P3 | CC: | ams, yozh | ||||
Version: | 6.0 | Keywords: | contributed | ||||
Target Milestone: | 6.0.2 | ||||||
Hardware: | All | ||||||
OS: | Mac OS X - Carbon (unsup.) | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Tobias Hahn
2009-10-13 13:55:01 EDT
Created attachment 149457 [details]
A patch fixing the issue.
According to its documentation, org.eclipse.cdt.internal.core.pdom.dom.PDOMName.getEnclosingDefinition() may return null. This is not checked in several instances, leading to a crash when getEnclosingDefinition() actually does return null. This patch adds the necessary guards.
Thx, the issue can be reproduced by (illegally) putting a friend declaration on global scope. This is not a duplicate of bug 279906. Applied patch for CDT 6.0.2 and 6.1 > 20091014. *** Bug 294934 has been marked as a duplicate of this bug. *** *** Bug 313562 has been marked as a duplicate of this bug. *** |