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.
Build: NetBeans IDE 7.0.1 (Build 201107282000) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Linux User Comments: mjreged: While trying to profile a maven based junit test. Setup stopwatch profiler point and run the test. At the end of the test Results = No results available. Double click causes the NPE cyhelsky: the report for the profiling points is not shown due to this NPE (it occurs when you click on the "report" link) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint$Report.initComponents(StopwatchProfilingPoint.java:313) at org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint$Report.<init>(StopwatchProfilingPoint.java:131) at org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint.getReport(StopwatchProfilingPoint.java:582) at org.netbeans.modules.profiler.ppoints.StopwatchProfilingPoint.showResults(StopwatchProfilingPoint.java:467) at org.netbeans.modules.profiler.ppoints.ProfilingPoint$ResultsRenderer.handleLink(ProfilingPoint.java:109) at org.netbeans.lib.profiler.ui.components.table.HTMLLabelTableCellRenderer$1.showURL(HTMLLabelTableCellRenderer.java:77)
Created attachment 109752 [details] stacktrace
*** Bug 200609 has been marked as a duplicate of this bug. ***
Caused by fix of bug 4129681 in JDK: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4129681
Workaround is to run IDE on JDK 1.6
In JDK 7 TitledBorder.getTitleFont() returns null in StopwatchProfilingPoint$Report.initComponents()
Fixed in main changeset: 198058:1b862d81f325 user: Jiri Sedlacek <jis@netbeans.org> date: Wed Aug 03 14:08:45 2011 +0200 summary: bugfix #200608, TitledBorder.getTitleFont() can return null - compute title font in Utils.getTitledBorderFont()
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/1b862d81f325 User: Jiri Sedlacek <jis@netbeans.org> Log: bugfix #200608, TitledBorder.getTitleFont() can return null - compute title font in Utils.getTitledBorderFont()
verified on: Product Version: NetBeans IDE Dev (Build 201108040600) Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02 System: Linux version 2.6.38-10-generic running on amd64; UTF-8; en_US (nb)
re-verified(needs to be verified on jdk7) on: Product Version: NetBeans IDE Dev (Build 201108040600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 2.6.38-10-generic running on i386; UTF-8; en_US (nb)
Transplanted to release701_fixes.
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/6d9b7a91b2b3 User: Jiri Sedlacek <jis@netbeans.org> Log: bugfix #200608, TitledBorder.getTitleFont() can return null - compute title font in Utils.getTitledBorderFont() (transplanted from 1b862d81f3255548c1cfee5bdc12274b49a3518f)
patch verified on latest UC build
*** Bug 208261 has been marked as a duplicate of this bug. ***