mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix NPE.
This commit is contained in:
parent
ffb32e66e2
commit
cc19f30cd6
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,9 @@ public class CProjectSourceContainer extends CompositeSourceContainer {
|
|||
* @see org.eclipse.debug.internal.core.sourcelookup.ISourceContainer#findSourceElements(java.lang.String)
|
||||
*/
|
||||
public Object[] findSourceElements(String name) throws CoreException {
|
||||
if (fProject == null)
|
||||
return EMPTY;
|
||||
|
||||
ArrayList<Object> sources = new ArrayList<Object>();
|
||||
|
||||
// An IllegalArgumentException is thrown from the "getFile" method
|
||||
|
|
Loading…
Add table
Reference in a new issue