### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java,v retrieving revision 1.23 diff -u -r1.23 PossibleMatch.java --- search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java 1 Dec 2005 16:21:55 -0000 1.23 +++ search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java 26 Apr 2006 15:05:33 -0000 @@ -125,8 +125,10 @@ if (this.openable.getSourceMapper() != null) { BinaryType type = (BinaryType) ((ClassFile) this.openable).getType(); ClassFileReader reader = MatchLocator.classFileReader(type); - if (reader != null) - this.sourceFileName = type.sourceFileName(reader); + if (reader != null) { + String fileName = type.sourceFileName(reader); + this.sourceFileName = fileName == null ? NO_SOURCE_FILE_NAME : fileName; + } } return this.sourceFileName; }