-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.0.2
-
sparc
-
solaris_2.5
I'm currently working with the JTable component using
the DefaultTableModel. Into the TableModel i want
to insert an empty row of data via
addRow((Vector) null).
As a result a got an NullPointerException. I looked
in the code of DefaultTableModel and found the following
538: if (newRow == null)
newRow = new Vector(numColumns);
540: dataVector.addElement(rowData);
I think, line 540 has to be changed to
540: dataVector.addElement(newRow);
regards
Ulrich
//////////////////////////////////////////////
Ulrich Schaefer
Daimler-Benz AG
CAE-Research (FT3/EK)
P.O. Box 2360
D-89013 Ulm, Germany
Phone: +49 731 505-2846
Fax: +49 731 505-4210
//////////////////////////////////////////////
the DefaultTableModel. Into the TableModel i want
to insert an empty row of data via
addRow((Vector) null).
As a result a got an NullPointerException. I looked
in the code of DefaultTableModel and found the following
538: if (newRow == null)
newRow = new Vector(numColumns);
540: dataVector.addElement(rowData);
I think, line 540 has to be changed to
540: dataVector.addElement(newRow);
regards
Ulrich
//////////////////////////////////////////////
Ulrich Schaefer
Daimler-Benz AG
CAE-Research (FT3/EK)
P.O. Box 2360
D-89013 Ulm, Germany
Phone: +49 731 505-2846
Fax: +49 731 505-4210
//////////////////////////////////////////////