mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 11:25:35 +02:00
NPE invoking rename refactoring, bug 244866.
This commit is contained in:
parent
63563deaf8
commit
db8b15aacf
1 changed files with 17 additions and 15 deletions
|
@ -822,6 +822,7 @@ public class ASTManager {
|
|||
pm.worked(1);
|
||||
if (tu != null) {
|
||||
IASTName name= tu.getNodeSelector(tu.getFilePath()).findEnclosingName(fArgument.getOffset(), fArgument.getLength());
|
||||
if (name != null) {
|
||||
if (name instanceof ICPPASTQualifiedName) {
|
||||
IASTName[] na= ((ICPPASTQualifiedName) name).getNames();
|
||||
name= na[na.length-1];
|
||||
|
@ -838,6 +839,7 @@ public class ASTManager {
|
|||
fArgument.setBinding(name.getTranslationUnit(), binding, scope);
|
||||
}
|
||||
}
|
||||
}
|
||||
pm.worked(1);
|
||||
pm.done();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue