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 193075 - NullPointerException at org.netbeans.modules.cnd.makeproject.configurations.ui.TableEditorPanel$MyTableModel.setValueAt
Summary: NullPointerException at org.netbeans.modules.cnd.makeproject.configurations.u...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 21:14 UTC by Alexander Simon
Modified: 2010-12-11 06:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 174584


Attachments
stacktrace (5.52 KB, text/plain)
2010-12-08 21:14 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2010-12-08 21:14:44 UTC
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)
Comment 1 Alexander Simon 2010-12-08 21:14:47 UTC
Created attachment 103767 [details]
stacktrace
Comment 2 Thomas Preisler 2010-12-09 01:10:42 UTC
Cannot reporduce. Need more info:

what were you doing at the time of the exception?
is it reproducible?
managed project?
unmanaged?
platform?
Comment 3 Alexander Simon 2010-12-09 09:05:18 UTC
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
Comment 4 Thomas Preisler 2010-12-09 21:26:52 UTC
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.....
Comment 5 Thomas Preisler 2010-12-09 22:30:34 UTC
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
Comment 6 Quality Engineering 2010-12-11 06:33:42 UTC
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