| Summary: | NPE in NewClassCodeGenerator when attempting to create files not under a source root | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Sergey Prigogin <eclipse.sprigogin> |
| Component: | cdt-editor | Assignee: | Sergey Prigogin <eclipse.sprigogin> |
| Status: | RESOLVED FIXED | QA Contact: | Anton Leherbauer <aleherb+eclipse> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug |
| Version: | 8.0 | ||
| Target Milestone: | 8.0.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Fixed in cdt_8_0 and master. *** cdt git genie on behalf of Sergey Prigogin ***
Bug 360058 - NPE in NewClassCodeGenerator when attempting to create
files not under a source root. Eliminated faulty canonicalization
if resource paths.
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=5c8b7da9f42ee80f48537cf2037c15e59bf2d83a
*** cdt git genie on behalf of Sergey Prigogin ***
Bug 360058 - NPE in NewClassCodeGenerator when attempting to create
files not under a source root. Eliminated faulty canonicalization
if resource paths.
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=70d8eade30faa22f1c976f3459872a5be4fe3bbf
|
To reproduce try to create a class not under a source root. Such an attempt results in NPE: java.lang.NullPointerException at org.eclipse.cdt.internal.ui.wizards.classwizard.NewClassCodeGenerator.createClass(NewClassCodeGenerator.java: 208) at org.eclipse.cdt.ui.wizards.NewClassCreationWizardPage.createClass(NewClassCreationWizardPage.java: 2107) at org.eclipse.cdt.ui.wizards.NewClassCreationWizardPage.createClass(NewClassCreationWizardPage.java: 2047) at org.eclipse.cdt.internal.ui.wizards.NewClassCreationWizard.finishPage(NewClassCreationWizard.java: 60) at org.eclipse.cdt.internal.ui.wizards.NewElementWizard