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 221396 - NullPointerException at javax.swing.JLabel.setIcon
Summary: NullPointerException at javax.swing.JLabel.setIcon
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 23:50 UTC by ecerichter
Modified: 2012-11-09 02:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193852


Attachments
stacktrace (2.51 KB, text/plain)
2012-11-02 23:50 UTC, ecerichter
Details
stacktrace (2.51 KB, text/plain)
2012-11-07 17:22 UTC, ecerichter
Details
Deadlock java stack. (7.47 KB, text/plain)
2012-11-07 18:08 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2012-11-02 23:50:39 UTC
Build: NetBeans IDE Dev (Build 201211020001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 7

User Comments:
ecerichter: Navigating options (Fonts & Colors, Syntax, All Languages), I was using the "down" key from my keyboard. 
When moved from "Separator" do "String", the error has hit.

GUEST: ==

GUEST: I just appeared while I was changing fonts




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.JLabel.setIcon(JLabel.java:402)
   at org.openide.awt.ColorComboBoxRendererWrapper.getListCellRendererComponent(ColorComboBoxRendererWrapper.java:88)
   at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.paintCurrentValue(WindowsComboBoxUI.java:286)
   at javax.swing.plaf.basic.BasicComboBoxUI.paint(BasicComboBoxUI.java:905)
   at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.paint(WindowsComboBoxUI.java:217)
   at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
Comment 1 ecerichter 2012-11-02 23:50:41 UTC
Created attachment 127051 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2012-11-05 09:29:36 UTC
core-main 27fa4903b66e
Comment 3 ecerichter 2012-11-05 11:01:28 UTC
Can you please provide in which night build I would be able to re-test?

Thanks,

Edson
Comment 4 Stanislav Aubrecht 2012-11-05 11:15:31 UTC
(In reply to comment #3)
> Can you please provide in which night build I would be able to re-test?
> 
There will be a comment with download link from NB build system in this issue when the changeset is integrated.
Comment 5 Quality Engineering 2012-11-07 03:42:07 UTC
Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/27fa4903b66e
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #221396 - synchronization to prevent NPE
Comment 6 ecerichter 2012-11-07 17:22:28 UTC
Created attachment 127334 [details]
stacktrace

Still same problem in 201211060001.
Comment 7 ecerichter 2012-11-07 18:05:49 UTC
The patch added a NB freeze.
Comment 8 ecerichter 2012-11-07 18:08:28 UTC
Created attachment 127339 [details]
Deadlock java stack.
Comment 9 ecerichter 2012-11-08 03:18:21 UTC
Rising priority because NetBeans is now unstable when using the Font&Colors options panel.
It's almost impossible to select an option without getting the deadlock.
Comment 10 Stanislav Aubrecht 2012-11-08 08:32:14 UTC
This is a bug in SyntaxColoringPanel where UI components are accessed in a background thread.
If that is fixed then probably my original fix 27fa4903b66e is no longer needed.
Comment 11 Milutin Kristofic 2012-11-08 14:14:38 UTC
http://hg.netbeans.org/jet-main/rev/f5509c200c0c

Standa, you can revert your fix, if you want. This should be enough.
Comment 12 Quality Engineering 2012-11-09 02:51:16 UTC
Integrated into 'main-golden', will be available in build *201211090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f5509c200c0c
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #221396 - NullPointerException at javax.swing.JLabel.setIcon