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.
Sometimes it happens that commit validation suite fails because NullPointerException (see attached) is thrown when the test starts debug-single target. There are two breakpoints in a simple java class. Last time occured in build 20040629-1814, JDK1.4.2_03.
Created attachment 16067 [details] Stack trace
Looks like som openide problem. I do not understand how its possible to get NPE from NodeTableModel.java:122!
I temporarily removed testDebugging test case from the suite. To run commit validation in debug mode run: cd nb_all/ide/test and -Dxtest.attribs=validation -Dxtest.debug.port=8765
P2 for all fix-in-40 issues
> I do not understand how its possible to get NPE from NodeTableModel.java:122! Line 122: allPropertyColumns[ia].setProperty( props[i] ); All you need to do is pass null for the Property[] props argument. Don't do that, it's not legal.
If props was null, NPE would be thrown at line 98, wouldn't it? However, I can image that allPropertyColumns[ia] can change to null in between lines 121 and 122 because setProperties method is not synchronized.
Should be fixed by this change: RCS file: /cvs/debuggercore/viewmodel/src/org/netbeans/spi/viewmodel/Models.java,v retrieving revision 1.5 retrieving revision 1.6 diff -r1.5 -r1.6 27a28 > import javax.swing.SwingUtilities; 116c117 < JComponent view, --- > final JComponent view, 162c163 < CompoundModel cm = new CompoundModel ( --- > final CompoundModel cm = new CompoundModel ( 169c170,174 < ((TreeTable) view).setModel (cm); --- > SwingUtilities.invokeLater (new Runnable () { > public void run () { > ((TreeTable) view).setModel (cm); > } > });
Verifying - issue not seen in automated tests for a long time after fix.