Summary: | [Content Assist] NPE in CPPTemplateScope.getParent | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] CDT | Reporter: | Anton Leherbauer <aleherb+eclipse> | ||||
Component: | cdt-core | Assignee: | Bryan Wilkinson <bryan2233> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | bryan2233 | ||||
Version: | 4.0 | Keywords: | contributed | ||||
Target Milestone: | 4.0 M5 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Anton Leherbauer
2007-02-01 03:06:50 EST
Created attachment 58262 [details]
proposed patch
The NullPointerException at CPPTemplateScope.getParent() occurs due to the template's name being null. However, it is valid for the name to be null for a case such as this, since the template is empty. Also, the name is only used to handle a special case involving qualification, so simply checking for null and proceeding with the standard execution of the method should suffice.
Thanks, patch applied. |