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 201605230002) VM: OpenJDK 64-Bit Server VM, 25.91-b14, OpenJDK Runtime Environment, 1.8.0_91-8u91-b14-2-b14 OS: Linux User Comments: sviatopolk: This error just came forth when starting the IDE with several projects and a dozen or two (PHP) files opened. Stacktrace: java.lang.NullPointerException at javax.swing.JLabel.setIcon(JLabel.java:406) at org.netbeans.core.multitabs.impl.TabDataRenderer.getPreferredWidth(TabDataRenderer.java:169) at org.netbeans.core.multitabs.impl.TabTable.adjustColumnWidths(TabTable.java:176) at org.netbeans.core.multitabs.impl.TabTable$1.tableChanged(TabTable.java:85) at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:296) at javax.swing.table.AbstractTableModel.fireTableDataChanged(AbstractTableModel.java:198)
Created attachment 159854 [details] stacktrace
When run in a single AWT thread, this NPE can not happen at that location (http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/f8725698a870/src/share/classes/javax/swing/JLabel.java) There was some asynchronous thread, which set the icon to null. clear() must not be called in a non-event thread: changeset: 299409:2d56b865928e http://hg.netbeans.org/core-main/rev/2d56b865928e
Integrated into 'main-silver', will be available in build *201607210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2d56b865928e User: mentlicher@netbeans.org Log: #262200: Assert that clearing is done in AWT to prevent from race conditions.