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 239234 - NullPointerException at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.paint
Summary: NullPointerException at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
: 239227 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-08 08:57 UTC by victork
Modified: 2015-03-16 10:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205858


Attachments
stacktrace (4.46 KB, text/plain)
2013-12-08 08:57 UTC, victork
Details

Note You need to log in before you can comment on or make changes to this bug.
Description victork 2013-12-08 08:57:53 UTC
Build: NetBeans IDE Dev (Build 20131208-bdaa8f8f69f1)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
victork: Caused by opened selfsampler tabs(Opened from Exception Reporter) - exact cause unknown.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.paint(WindowsTableHeaderUI.java:170)
   at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
   at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(BasicTableHeaderUI.java:710)
   at javax.swing.plaf.basic.BasicTableHeaderUI.paint(BasicTableHeaderUI.java:652)
   at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
   at javax.swing.JComponent.paintComponent(JComponent.java:778)
Comment 1 victork 2013-12-08 08:57:54 UTC
Created attachment 142941 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2013-12-09 06:19:30 UTC
Reporter, did you switch window styles in Windows Control Panel by any chance?
Comment 3 victork 2013-12-09 10:59:49 UTC
Nope.
However sometimes i connect via RDP and then resolution is changed(From 16:9 to 4:3) and vice versa then coming back locally to the workstation.
Only wallpaper and resolution are customized in the system(DPI is standard and Aero+Themes service are on).

Note that it happens only then selfsampler tabs are opened(From exception report window and i close the exception report window itself -> selfsampler stays as a tab in the IDE).

Exception comes in an "endless" state -> i close it and it pops-up again immediately.
Only then i close the selfsampler tab/tabs(if more than one is opened) then after closing the exception window those exceptions will stop popping.
Comment 4 Stanislav Aubrecht 2013-12-09 11:00:53 UTC
*** Bug 239227 has been marked as a duplicate of this bug. ***
Comment 5 Stanislav Aubrecht 2013-12-09 11:04:56 UTC
The bug culprit suggests a JTable is being manipulated off the EDT. 
Reassigning to selfsampler module (please reassign if I picked the wrong component).
Comment 6 victork 2013-12-09 11:10:44 UTC
You picked the correct one :)
Even first bug(239227) is associated with a selfsampler i've didn't saw the relationship back then i submitted it(Exception reporter assigned different bugs to them due to slightly different stacktrace but both have the same cause/bug behind them).

Looks like it looses the 'parent' at some stage(may be the 'parent' is an exception report window which i close and that causes the NULL pointer dereference exception).
Comment 7 Jaroslav Tulach 2013-12-09 15:52:14 UTC
I am not sure of any other JTable except the one provided by profiler to display the snapshots. Passing to Jirka.
Comment 8 Jiri Sedlacek 2013-12-09 16:02:04 UTC
Looks similar to Bug 225222. I can't see any profiler code involved.
Comment 9 Jiri Sedlacek 2015-03-16 10:41:30 UTC
Seems to be fixed already. Should not be reproducible in the redesigned profiler UI.