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 251581 - NPE when switching L&F
Summary: NPE when switching L&F
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 08:51 UTC by cezariusz
Modified: 2015-06-04 20:34 UTC (History)
1 user (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 cezariusz 2015-04-02 08:51:53 UTC
Exception is randomly thrown by a platform application when switching to the Nimbus L&F.

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.synth.SynthTableHeaderUI.paint(SynthTableHeaderUI.java:173)
 at javax.swing.plaf.synth.SynthTableHeaderUI.update(SynthTableHeaderUI.java:144)
 at javax.swing.JComponent.paintComponent(JComponent.java:777)
 at javax.swing.JComponent.paint(JComponent.java:1053)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JViewport.paint(JViewport.java:728)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:994)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
 at javax.swing.JComponent.paintChildren(JComponent.java:886)
 at javax.swing.JComponent.paint(JComponent.java:1062)
 at javax.swing.JComponent.paintToOffscreen(JComponent.java:5223)
 at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572)
 at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495)
 at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306)
 at javax.swing.RepaintManager.paint(RepaintManager.java:1265)
 at javax.swing.JComponent._paintImmediately(JComponent.java:5171)
 at javax.swing.JComponent.paintImmediately(JComponent.java:4982)
 at javax.swing.RepaintManager$4.run(RepaintManager.java:824)
 at javax.swing.RepaintManager$4.run(RepaintManager.java:807)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
 at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807)
 at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782)
 at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731)
 at javax.swing.RepaintManager.access$1300(RepaintManager.java:64)
 at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
 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.awt.EventQueue.dispatchEvent(EventQueue.java:714)
 at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] 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)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 cezariusz 2015-06-04 20:34:01 UTC
Another one during startup:

java.lang.NullPointerException
	at javax.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:298)
	at javax.swing.plaf.nimbus.NimbusStyle.getValues(NimbusStyle.java:806)
	at javax.swing.plaf.nimbus.NimbusStyle.getInsets(NimbusStyle.java:485)
	at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:913)
	at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:265)
	at javax.swing.plaf.synth.SynthPopupMenuUI.updateStyle(SynthPopupMenuUI.java:73)
	at javax.swing.plaf.synth.SynthPopupMenuUI.installDefaults(SynthPopupMenuUI.java:67)
	at javax.swing.plaf.basic.BasicPopupMenuUI.installUI(BasicPopupMenuUI.java:91)
	at javax.swing.JComponent.setUI(JComponent.java:666)
	at javax.swing.JPopupMenu.setUI(JPopupMenu.java:219)
	at javax.swing.JPopupMenu.updateUI(JPopupMenu.java:228)
	at javax.swing.JPopupMenu.<init>(JPopupMenu.java:193)
	at javax.swing.JPopupMenu.<init>(JPopupMenu.java:178)
	at javax.swing.JMenu.ensurePopupMenuCreated(JMenu.java:539)
	at javax.swing.JMenu.add(JMenu.java:584)
	at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:163)
	at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:808)
	at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:888)
	at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:730)
	at org.openide.util.Task.run(Task.java:257)
[catch] at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:79)
	at org.netbeans.modules.openide.loaders.AWTTask$Processor.run(AWTTask.java:172)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	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)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)