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

* CProjectSourceLocation.java: check if the searched element name is not null or empty.

This commit is contained in:
Mikhail Khodjaiants 2003-10-29 21:19:42 +00:00
parent cf3e26e371
commit 09b00a8cd5
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
2003-10-29 Mikhail Khodjaiants
* CProjectSourceLocation.java: check if the searched element name is not null or empty.
2003-10-29 Mikhail Khodjaiants
Added the 'dispose' method to 'ICSourceLocation'.
* ICSourceLocation.java

View file

@ -96,7 +96,7 @@ public class CProjectSourceLocation implements IProjectSourceLocation
public Object findSourceElement( String name ) throws CoreException
{
Object result = null;
if ( getProject() != null && !notFoundCacheLookup( name ) )
if ( !isEmpty( name ) && getProject() != null && !notFoundCacheLookup( name ) )
{
result = cacheLookup( name );
if ( result == null )