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 248737 - NullPointerException at javax.swing.AbstractButton.removeNotify
Summary: NullPointerException at javax.swing.AbstractButton.removeNotify
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-19 05:31 UTC by thanojds
Modified: 2014-11-19 13:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 213527


Attachments
stacktrace (7.21 KB, text/plain)
2014-11-19 05:31 UTC, thanojds
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thanojds 2014-11-19 05:31:13 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 8

Stacktrace: 
java.lang.NullPointerException
   at javax.swing.AbstractButton.removeNotify(AbstractButton.java:1033)
   at java.awt.Container.removeNotify(Container.java:2800)
   at javax.swing.JComponent.removeNotify(JComponent.java:4759)
   at java.awt.Container.removeNotify(Container.java:2800)
   at javax.swing.JComponent.removeNotify(JComponent.java:4759)
   at java.awt.Container.removeNotify(Container.java:2800)
Comment 1 thanojds 2014-11-19 05:31:14 UTC
Created attachment 150559 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2014-11-19 08:41:49 UTC
Looks like the root cause is in the form designer: 

java.lang.NullPointerException
	at com.sun.java.swing.plaf.windows.WindowsIconFactory$RadioButtonIcon.paintIcon(WindowsIconFactory.java:443)
	at javax.swing.plaf.basic.BasicRadioButtonUI.paint(BasicRadioButtonUI.java:179)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
	at javax.swing.JComponent.paintComponent(JComponent.java:778)
	at javax.swing.JComponent.paint(JComponent.java:1054)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:585)
	at javax.swing.JComponent.paintChildren(JComponent.java:887)
	at javax.swing.JComponent.paint(JComponent.java:1063)
	at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
	at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
	at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
	at java.awt.Container.paint(Container.java:1967)
	at org.netbeans.modules.form.fakepeer.FakePeerContainer.paint(FakePeerContainer.java:89)
Comment 3 Tomas Pavek 2014-11-19 13:46:41 UTC
Looks like if the designed GUI form contains a JRadioButton with a null model.
Can you check it? There were several reports of this from older NetBeans releases. The null model on a button does not make sense, but could have been set by accident. If you have a GUI form on which the exception can be reproduced by opening in the designer, can you attach it here? Thanks.