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.
This issue was reported manually by vv159170. It already has 1 duplicates Build: NetBeans IDE Dev (Build 101130-cfb435748a59) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: SunOS Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.makeproject.configurations.ui.TableEditorPanel$MyTableModel.setValueAt(TableEditorPanel.java:346) at javax.swing.JTable.setValueAt(JTable.java:2710) at javax.swing.JTable.editingStopped(JTable.java:4712) at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:125) at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:350) at javax.swing.DefaultCellEditor$3.stopCellEditing(DefaultCellEditor.java:140)
Created attachment 103767 [details] stacktrace
Cannot reporduce. Need more info: what were you doing at the time of the exception? is it reproducible? managed project? unmanaged? platform?
Thomas, before closing issue you should proof that in ordinary work flow it cannot be. See code TableEditorPanel.MyTable.getCellEditor(): ------------8<------------------ } else if (col == 1) { LibraryItem.ProjectItem projectItem = (LibraryItem.ProjectItem) listData.elementAt(row); Project project = projectItem.getProject(baseDir); if (project == null) { return super.getCellEditor(row, col); } else { MakeArtifact[] artifacts = MakeArtifact.getMakeArtifacts(project); JComboBox comboBox = new JComboBox(); for (int i = 0; i < artifacts.length; i++) { comboBox.addItem(new MakeArtifactWrapper(artifacts[i])); } return new DefaultCellEditor(comboBox); } ------------8<------------------ Are you sure that combobox will have not empty item list? If you can proof it, close bug. OK, simplest way to reproduce bug is: - create sub-project application - restart IDE - open in editor hello1lib/nbproject/configuration.xml - type "-" in line 2 after "<", save file, project hello1lib is broken - edit main project properties->Linler->Libraries - click on hello1lib Configuration column - try to click on any other cell, see NPE
OK, I able to reproduce it now. It would have been very helpful if you had included the steps in the first place. Will fix.....
Fixed: changeset: 184497:9b10e6db2ce7 tag: tip user: Thomas Preisler <thp@netbeans.org> date: Thu Dec 09 14:29:36 2010 -0800 summary: #193075 - NullPointerException at org.netbeans.modules.cnd.makeproject.configurations.ui.TableEditorPanel$MyTableModel.setValueA
Integrated into 'main-golden', will be available in build *201012110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9b10e6db2ce7 User: Thomas Preisler <thp@netbeans.org> Log: #193075 - NullPointerException at org.netbeans.modules.cnd.makeproject.configurations.ui.TableEditorPanel$MyTableModel.setValueA