1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Possible NPE

This commit is contained in:
Alain Magloire 2004-04-06 23:23:46 +00:00
parent 3a4caa0d20
commit 9ac35a9e97
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-04-06 Alain Magloire
Fix possible NPE.
* model/org/eclipse/cdt/internal/core/model/IncludeRefence.java
2004-04-06 David Inglis
Fixed up syncing of binary runner and ::getBinaries()

View file

@ -89,7 +89,12 @@ public class IncludeReference extends Openable implements IIncludeReference {
protected boolean computeChildren(OpenableInfo info, IResource res) throws CModelException {
ArrayList vChildren = new ArrayList();
final CModelManager factory = CModelManager.getDefault();
File file = fIncludeEntry.getIncludePath().toFile();
File file = null;
if (fPath != null) {
file = fPath.toFile();
} else if (fIncludeEntry != null) {
file = fIncludeEntry.getIncludePath().toFile();
}
String[] names = null;
if (file != null && file.isDirectory()) {
names = file.list();