mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
NPE Fix
This commit is contained in:
parent
da065bb454
commit
2e043c84e6
1 changed files with 6 additions and 4 deletions
|
@ -168,11 +168,13 @@ public class ClassDeclarationPattern extends CSearchPattern {
|
||||||
BasicSearchMatch match = new BasicSearchMatch();
|
BasicSearchMatch match = new BasicSearchMatch();
|
||||||
match.setName(new String(this.decodedSimpleName));
|
match.setName(new String(this.decodedSimpleName));
|
||||||
//Get qualified names as strings
|
//Get qualified names as strings
|
||||||
String[] qualifiedName = new String[decodedContainingTypes.length];
|
if (decodedContainingTypes != null){
|
||||||
for (int k=0; k<this.decodedContainingTypes.length; k++){
|
String[] qualifiedName = new String[decodedContainingTypes.length];
|
||||||
qualifiedName[k] =new String(this.decodedContainingTypes[k]);
|
for (int k=0; k<this.decodedContainingTypes.length; k++){
|
||||||
|
qualifiedName[k] =new String(this.decodedContainingTypes[k]);
|
||||||
|
}
|
||||||
|
match.setQualifiedName(qualifiedName);
|
||||||
}
|
}
|
||||||
match.setQualifiedName(qualifiedName);
|
|
||||||
//Don't forget that offsets are encoded ICIndexStorageConstants
|
//Don't forget that offsets are encoded ICIndexStorageConstants
|
||||||
//Offsets can either be LINE or OFFSET
|
//Offsets can either be LINE or OFFSET
|
||||||
int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue();
|
int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue();
|
||||||
|
|
Loading…
Add table
Reference in a new issue