mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Bug 318130: Exception when extracting a function
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318130
This commit is contained in:
parent
e846e27bc9
commit
0a81559841
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ public class NodeContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDeclarationInScope() {
|
public boolean isDeclarationInScope() {
|
||||||
if(declaration.toCharArray().length > 0) {
|
if(declaration != null && declaration.toCharArray().length > 0) {
|
||||||
int declOffset = declaration.getFileLocation().getNodeOffset();
|
int declOffset = declaration.getFileLocation().getNodeOffset();
|
||||||
return declOffset >= getStartOffset()
|
return declOffset >= getStartOffset()
|
||||||
&& declOffset <= getEndOffset();
|
&& declOffset <= getEndOffset();
|
||||||
|
|
Loading…
Add table
Reference in a new issue