mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Possible NPE
This commit is contained in:
parent
3a4caa0d20
commit
9ac35a9e97
2 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue