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 246155 - Hyperlink in documentation popup of 'data-main' throws errors
Summary: Hyperlink in documentation popup of 'data-main' throws errors
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: RequireJS (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-31 07:24 UTC by Geertjan Wielenga
Modified: 2014-08-11 07:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2014-07-31 07:24:38 UTC
I see the 'data-main' as an attribute in the script element, today. Great.

But have you clicked the hyperlinks in the documentation popup? When I do that, I get this:

java.lang.NullPointerException
    at org.netbeans.modules.html.editor.completion.HtmlCompletionProvider$HtmlTagDocumetationItem.resolveLink(HtmlCompletionProvider.java:592)
    at org.netbeans.modules.editor.completion.DocumentationScrollPane$HyperlinkAction$1.run(DocumentationScrollPane.java:471)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
    at org.openide.util.RequestProcessor.post(RequestProcessor.java:419)
    at org.netbeans.modules.editor.completion.DocumentationScrollPane$HyperlinkAction.hyperlinkUpdate(DocumentationScrollPane.java:467)
    at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:345)
    at javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(HTMLEditorKit.java:876)
    at javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(HTMLEditorKit.java:675)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
    at java.awt.Component.processMouseEvent(Component.java:6530)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6292)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4883)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4705)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4542)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.java:2278)
    at java.awt.Component.dispatchEvent(Component.java:4705)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 Petr Pisl 2014-07-31 11:40:42 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2014-08-01 02:09:30 UTC
Integrated into 'main-silver', will be available in build *201408010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/49075927f918
User: Petr Pisl <ppisl@netbeans.org>
Log: #246155 - Hyperlink in documentation popup of 'data-main' throws errors
Comment 3 Petr Pisl 2014-08-04 09:36:24 UTC
Vlado, this is not a part of 8.0.1 yet. Could verify it and I will transplant to 8.0.1 branch. Thanks
Comment 4 Vladimir Riha 2014-08-04 11:00:38 UTC
I'm sorry, due to issue 246232, I cannot even display the help window.
Comment 5 Vladimir Riha 2014-08-04 14:59:05 UTC
Verified on Ubuntu


Product Version: NetBeans IDE Dev (Build 201408040001)
Java: 1.8.0_11; Java HotSpot(TM) Client VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 6 Petr Pisl 2014-08-05 11:50:54 UTC
Transplanted to the releases branch release801.
Comment 7 Vladimir Riha 2014-08-08 11:10:08 UTC
The fix doesn't seem to be in release801, issue is still reproducible and sources also look like before the fix. Is it pushed?
Comment 8 Vladimir Riha 2014-08-08 11:13:01 UTC
I'm sorry for missing info...

Product Version: NetBeans IDE 8.0.1 RC1 (Build 201408072300)
Java: 1.8.0_11; Java HotSpot(TM) Client VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 9 Petr Pisl 2014-08-08 13:49:49 UTC
I'm sorry, I forgot to push the changes:(. Now it should be ok.
Comment 10 Quality Engineering 2014-08-09 06:21:44 UTC
Integrated into 'releases/release801', will be available in build *201408082300* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/5929e1f859f1
User: Petr Pisl <ppisl@netbeans.org>
Log: #246155 - Hyperlink in documentation popup of 'data-main' throws errors
Comment 11 Vladimir Riha 2014-08-11 07:20:52 UTC
Verified, thanks

Product Version: NetBeans IDE 8.0.1 RC1 (Build 201408102300)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)