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 269843

Summary: NullPointerException at org.netbeans.modules.maven.api.output.OutputUtils$StacktraceAttributes.access$200
Product: projects Reporter: AlexFalappa
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal CC: toben
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219826
Attachments: stacktrace

Description AlexFalappa 2017-02-16 09:27:42 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.121-b13, Java(TM) SE Runtime Environment, 1.8.0_121-b13
OS: Linux

User Comments:
GUEST: Not sure what happened

GUEST: Navigation into java code through exception output

AlexFalappa: Clicked on an error hyperlink in the Output Window




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.api.output.OutputUtils$StacktraceAttributes.access$200(OutputUtils.java:158)
   at org.netbeans.modules.maven.api.output.OutputUtils$StacktraceOutputListener.outputLineAction(OutputUtils.java:196)
   at org.netbeans.core.output2.OutputTab.lineClicked(OutputTab.java:271)
   at org.netbeans.core.output2.OutputPane.lineClicked(OutputPane.java:82)
   at org.netbeans.core.output2.ui.AbstractOutputPane.mouseReleased(AbstractOutputPane.java:759)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
Comment 1 AlexFalappa 2017-02-16 09:27:45 UTC
Created attachment 163644 [details]
stacktrace
Comment 2 Tomas Stupka 2017-02-22 16:36:37 UTC
what was the text of the hyperlink which caused the exception?
Comment 3 AlexFalappa 2017-02-22 18:06:20 UTC
Unfortunately I didn't capture the link text when this exception got thrown.
If it is relevant I will include it should the problem present again.
Comment 4 Tomas Stupka 2017-02-23 09:31:54 UTC
(In reply to AlexFalappa from comment #3)
> Unfortunately I didn't capture the link text when this exception got thrown.
> If it is relevant I will include it should the problem present again.
its easy to avoid the NPE, but in the first place it would be good to know why the line was hyperlinked when it does not point to a file/class/method (or can't be parsed for those info)
Comment 5 Tomas Stupka 2017-02-24 10:43:36 UTC
fixed in jet-main #e35a2d580f06
Comment 6 Tomas Stupka 2017-02-24 10:45:54 UTC
prevented the NPE and added logging to know whats wrong with output line
Comment 7 Quality Engineering 2017-03-01 02:52:01 UTC
Integrated into 'main-silver', will be available in build *201703010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e35a2d580f06
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #269843 - NullPointerException at org.netbeans.modules.maven.api.output.OutputUtils$StacktraceAttributes.access$200