mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +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();
|
||||
match.setName(new String(this.decodedSimpleName));
|
||||
//Get qualified names as strings
|
||||
String[] qualifiedName = new String[decodedContainingTypes.length];
|
||||
for (int k=0; k<this.decodedContainingTypes.length; k++){
|
||||
qualifiedName[k] =new String(this.decodedContainingTypes[k]);
|
||||
if (decodedContainingTypes != null){
|
||||
String[] qualifiedName = new String[decodedContainingTypes.length];
|
||||
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
|
||||
//Offsets can either be LINE or OFFSET
|
||||
int offsetType = Integer.valueOf(String.valueOf(offsets[i][j]).substring(0,1)).intValue();
|
||||
|
|
Loading…
Add table
Reference in a new issue