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

Summary: NullPointerException at org.netbeans.api.java.source.ui.ElementJavadoc.getText
Product: java Reporter: armandojaga
Component: NavigationAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: m_potociar
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 178232
Attachments: stacktrace

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