mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Test to see if the file exists before creating the ETU.
This commit is contained in:
parent
db11eb72ae
commit
ee5837ec29
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ public class MapEntrySourceContainer extends AbstractSourceContainer {
|
|||
|
||||
// The file is not already in the workspace so try to create an external translation unit for it.
|
||||
ISourceLookupDirector director = getDirector();
|
||||
if (director != null)
|
||||
if (director != null && file.exists() && file.isFile() )
|
||||
{
|
||||
ILaunchConfiguration launchConfiguration = director.getLaunchConfiguration();
|
||||
if (launchConfiguration != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue