Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-10-17 18:22:14 +0000
committerSergey Prigogin2011-10-17 18:22:14 +0000
commitffb7162210d7384f5da935c477c9274a96244672 (patch)
tree1026a51d714f64c55a6c4d72cf01cbec1aa61686
parent72db9fbe930226dbc6af44870a868af01814146c (diff)
downloadorg.eclipse.cdt-ffb7162210d7384f5da935c477c9274a96244672.tar.gz
org.eclipse.cdt-ffb7162210d7384f5da935c477c9274a96244672.tar.xz
org.eclipse.cdt-ffb7162210d7384f5da935c477c9274a96244672.zip
Fixed an NPE.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java
index e7ecd9a9039..dac2a04cdc1 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java
@@ -677,20 +677,20 @@ public class PDOMFile implements IIndexFragmentFile {
return result.toArray(new IIndexName[result.size()]);
}
- public static PDOMFile[] findFiles(PDOMLinkage linkage, BTree btree, IIndexFileLocation location,
+ public static IIndexFragmentFile[] findFiles(PDOMLinkage linkage, BTree btree, IIndexFileLocation location,
IIndexLocationConverter strategy) throws CoreException {
String internalRepresentation= strategy.toInternalFormat(location);
if (internalRepresentation != null) {
Finder finder = new Finder(linkage.getDB(), internalRepresentation, linkage.getLinkageID(), null);
btree.accept(finder);
long[] records= finder.getRecords();
- PDOMFile[] result= new PDOMFile[records.length];
+ IIndexFragmentFile[] result= new IIndexFragmentFile[records.length];
for (int i = 0; i < result.length; i++) {
result[i]= new PDOMFile(linkage, records[i]);
}
return result;
}
- return null;
+ return IIndexFragmentFile.EMPTY_ARRAY;
}
/**

Back to the top