### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/internal/core/CompilationUnit.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java,v retrieving revision 1.234 diff -u -r1.234 CompilationUnit.java --- model/org/eclipse/jdt/internal/core/CompilationUnit.java 6 Nov 2006 14:13:45 -0000 1.234 +++ model/org/eclipse/jdt/internal/core/CompilationUnit.java 14 Nov 2006 09:54:12 -0000 @@ -88,7 +88,9 @@ if (buffer == null) { buffer = openBuffer(pm, unitInfo); // open buffer independently from the info, since we are building the info } - final char[] contents = buffer == null ? null : buffer.getCharacters(); + final char[] contents = buffer == null ? + CharOperation.NO_CHAR : + buffer.getCharacters(); // generate structure and compute syntax problems if needed CompilationUnitStructureRequestor requestor = new CompilationUnitStructureRequestor(this, unitInfo, newElements); 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.25 diff -u -r1.25 PossibleMatch.java --- search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java 10 May 2006 18:03:43 -0000 1.25 +++ search/org/eclipse/jdt/internal/core/search/matching/PossibleMatch.java 14 Nov 2006 09:54:12 -0000 @@ -63,7 +63,7 @@ if (this.openable instanceof ClassFile) { String fileName = getSourceFileName(); - if (fileName == NO_SOURCE_FILE_NAME) return null; + if (fileName == NO_SOURCE_FILE_NAME) return CharOperation.NO_CHAR; SourceMapper sourceMapper = this.openable.getSourceMapper(); IType type = ((ClassFile) this.openable).getType();