This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198397 - NullPointerException at org.netbeans.api.java.source.ui.ElementJavadoc.getText
Summary: NullPointerException at org.netbeans.api.java.source.ui.ElementJavadoc.getText
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-06 15:49 UTC by armandojaga
Modified: 2011-05-11 19:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178232


Attachments
stacktrace (1.64 KB, text/plain)
2011-05-06 15:49 UTC, armandojaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description armandojaga 2011-05-06 15:49:34 UTC
Build: NetBeans IDE 7.0 (Build 201104211303)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
m_potociar: Clicked on a link in the Javadoc window.

Javadoc to javax.ws.rs.core.UriBuilder class, link to application/x-www-form-urlencoded media type




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ui.ElementJavadoc.getText(ElementJavadoc.java:157)
   at org.netbeans.modules.java.navigation.DocumentationScrollPane.setDocumentation(DocumentationScrollPane.java:225)
   at org.netbeans.modules.java.navigation.DocumentationScrollPane.setData(DocumentationScrollPane.java:138)
   at org.netbeans.modules.java.navigation.DocumentationScrollPane.access$200(DocumentationScrollPane.java:81)
   at org.netbeans.modules.java.navigation.DocumentationScrollPane$HyperlinkAction$1$1.run(DocumentationScrollPane.java:446)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 1 armandojaga 2011-05-06 15:49:38 UTC
Created attachment 108154 [details]
stacktrace
Comment 2 Tomas Zezula 2011-05-09 08:42:33 UTC
2 problems there.
The first already fixed in the 46b326add382 - the javadoc may be null.
The second is visibility problem EJ is created in other thread then the EJ.getText() is called.
Comment 3 Tomas Zezula 2011-05-09 08:50:36 UTC
Fixed jet-main 58f6ab2e3576
Comment 4 Quality Engineering 2011-05-11 19:40:44 UTC
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/58f6ab2e3576
User: Tomas Zezula <tzezula@netbeans.org>
Log: #198397:NullPointerException at org.netbeans.api.java.source.ui.ElementJavadoc.getText