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 200911091156) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.2, x86_64 User Comments: GUEST: trying to set buttons action via "set action" menu Stacktrace: java.lang.NullPointerException at org.netbeans.modules.swingapp.ActionPropertyEditorPanel$3.getListCellRendererComponent(ActionPropertyEditorPanel.java:169) at com.apple.laf.AquaComboBoxButton.doRendererPaint(AquaComboBoxButton.java:147) at com.apple.laf.AquaComboBoxButton.paintComponent(AquaComboBoxButton.java:139) at javax.swing.JComponent.paint(JComponent.java:1029) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paint(JComponent.java:1038)
Created attachment 91368 [details] stacktrace
The corresponding code is public Component getListCellRendererComponent(...,Object value,...) { Component comp = super.getListCellRendererComponent(...); ProxyAction.Scope scope = (ProxyAction.Scope)value; -> ((JLabel)comp).setText(scope.toString()); ... } i.e. the scope variable is null (because value variable is null). I searched the code and I cannot imagine how the selected item of the corresponding combobox (scopeCombo) can be null there. It seems that AquaComboBoxButton.doRendererPaint() passes null to the renderer in spite of the fact that the selected item is non-null. I searched the Internet and found several similar reports. It seems to be a new problem/feature of Apple's JDK 6. While I consider this to be a problem of Apple's JDK 6, we can still workaround this issue easily.
Fixed. Modified file: http://hg.netbeans.org/cdev/rev/3130f9f88d93