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:
parent
cf3e26e371
commit
09b00a8cd5
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue