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 Dev (Build 200902231810) VM: OpenJDK Client VM, 1.6.0_0-b12, IcedTea6 1.3.1 (6b12-0ubuntu6.4) Runtime Environment, 1.6.0_0-b12 OS: Linux, 2.6.27-11-generic, i386 User Comments: micrenda: I was editing the formats of a Formatted Text Box. Stacktrace: java.lang.NullPointerException at javax.swing.JComponent.setBorder(JComponent.java:1777) at org.netbeans.modules.form.editors.FormatSelector$FormatInfoRenderer.getListCellRendererComponent(FormatSelector.java:973) at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:208) at javax.swing.plaf.basic.BasicListUI.paintImpl(BasicListUI.java:317) at javax.swing.plaf.basic.BasicListUI.paint(BasicListUI.java:240) at javax.swing.plaf.synth.SynthListUI.update(SynthListUI.java:69)
Created attachment 79488 [details] stacktrace
The described exception is a problem in JDK, see http://bugs.sun.com/view_bug.do?bug_id=6739738 We will try to implement some workaround to avoid the exception.
I have implemented a workaround. The border is not set if border.getBorderInsets(comp) == null (e.g. in the buggy case). I wasn't able to verify the fix on my Windows machine (the issue doesn't occur on Windows). Hence, feel free to reopen this issue if the workaround doesn't work for any reason. Modified file: http://hg.netbeans.org/cdev/rev/d6a695689289