### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/internal/core/Member.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Member.java,v retrieving revision 1.41 diff -u -r1.41 Member.java --- model/org/eclipse/jdt/internal/core/Member.java 20 Oct 2005 22:31:23 -0000 1.41 +++ model/org/eclipse/jdt/internal/core/Member.java 14 Dec 2005 17:12:18 -0000 @@ -253,7 +253,16 @@ public ISourceRange getJavadocRange() throws JavaModelException { ISourceRange range= this.getSourceRange(); if (range == null) return null; - IBuffer buf= this.isBinary() ? this.getClassFile().getBuffer() : this.getCompilationUnit().getBuffer(); + IBuffer buf= null; + if (this.isBinary()) { + buf = this.getClassFile().getBuffer(); + } else { + ICompilationUnit compilationUnit = this.getCompilationUnit(); + if (!compilationUnit.isConsistent()) { + return null; + } + buf = compilationUnit.getBuffer(); + } final int start= range.getOffset(); final int length= range.getLength(); if (length > 0 && buf.getChar(start) == '/') {