Summary: | [NPE] caused by CPPMethod#getVisibility() line: 143 when indexing Mozilla in Linux | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] CDT | Reporter: | Devin Steffler <devinsteffler.lists> | ||||
Component: | cdt-core | Assignee: | Andrew Niefer <aniefer> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | aniefer, john.camelon | ||||
Version: | 3.0 | Keywords: | contributed | ||||
Target Milestone: | 3.0 RC2 | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Devin Steffler
2005-07-05 13:33:33 EDT
Can this be a candidate for RC2? Would it be ok to have CPPMethod#getVisibility() return ICPPASTVisibilityLabel.v_private if the declaration for the CPPMethod is null? The declaration is null because getPrimaryDeclaration() returns null since declarations==null and no member in the scope has the same binding as the CPPMethod. Or would it be better to troubleshoot this further since this should probably never happen anyways? troubleshoot to find the scenario to see if it is preventable. implement your solution (returning private) irregardless of the scenario. Created attachment 24430 [details]
fix for this PR
The reason why getPrimaryDeclaration() returns null still needs to be
investigated.
done. though, if we can, we check the containing class and return public if its a struct. |