Bug 46040 - NPE in Eclipse console
Summary: NPE in Eclipse console
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-04 12:19 EST by Darin Wright CLA
Modified: 2003-12-16 13:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2003-11-04 12:19:46 EST
I found this in my Eclipse console. I don't know what I did to make it happen:

java.lang.NullPointerException
        at org.eclipse.jdt.internal.core.Buffer.getChar(Buffer.java:115)
        at org.eclipse.jdt.internal.corext.javadoc.JavaDocCommentReader.read(Jav
aDocCommentReader.java:48)
        at java.io.FilterReader.read(FilterReader.java:48)
        at java.io.PushbackReader.read(PushbackReader.java:73)
        at org.eclipse.jdt.internal.ui.text.SubstitutionTextReader.nextChar(Subs
titutionTextReader.java:82)
        at org.eclipse.jdt.internal.ui.text.SubstitutionTextReader.read(Substitu
tionTextReader.java:106)
        at org.eclipse.jdt.internal.corext.javadoc.SingleCharReader.read(SingleC
harReader.java:30)
        at java.io.Reader.read(Reader.java:100)
        at org.eclipse.jdt.internal.ui.text.HTMLPrinter.read(HTMLPrinter.java:64
)
        at org.eclipse.jdt.internal.ui.text.HTMLPrinter.addParagraph(HTMLPrinter
.java:150)
        at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover.getHoverInfo
(JavadocHover.java:67)
        at org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHov
er.getHoverInfo(AbstractJavaEditorTextHover.java:105)
        at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverIn
fo(BestMatchHover.java:140)
        at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.
getHoverInfo(JavaEditorTextHoverProxy.java:69)
        at org.eclipse.jface.text.TextViewerHoverManager$2.run(TextViewerHoverMa
nager.java:119)
Comment 1 Darin Wright CLA 2003-11-04 12:20:08 EST
Build I20031029
Comment 2 Jerome Lanneluc CLA 2003-12-15 11:25:53 EST
getChar(int) was called on a closed buffer. Fixed spec and implementation to 
return an undefined char instead of throwing an exception.

Added regression test BufferTests.testGetChar2()
Comment 3 Frederic Fusier CLA 2003-12-16 13:47:07 EST
Verified with build I200312160010.

As there's no user test case, just verify both code modif and added regression 
test.