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.
Using GTKLookAndFeel from JDK 1.6.0 (b99) causes NPE when opening subversion Diff. The stack trace: java.lang.NullPointerException at org.netbeans.modules.subversion.ui.diff.MultiDiffView.addPropertyChangeListener(MultiDiffView.java:277) at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:49) at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38) at javax.swing.JComponent.setUI(JComponent.java:668) at javax.swing.JPanel.setUI(JPanel.java:136) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at org.netbeans.modules.subversion.ui.diff.MultiDiffView.<init>(MultiDiffView.java:95) at org.netbeans.modules.subversion.ui.diff.DiffMainPanel$DiffPrepareTask.run(DiffMainPanel.java:654) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Created attachment 34370 [details] Simple patch to prevent NPE
The main problem is that GTK LAF overrides the standard Panel and try to initialize the listeners. As the initialization sequence is called from the ancestor constructors the support variable hasn't been initialized yet.
Changed the defect type to PATCH
I'm having the same problem, can we expect to see this fixed before 5.5 final?
It will most probably not make it into 5.5, please use JDK 1.5. We will fix it until 1.6 FCS.
FYI: This bug can be reproduced using 1.5.0 Java as well.
Yep same here, 1.5 and 1.6, can't use GTKLookAndFeel with the diff tool in subversion. I realize that since Netbeans 5.5 is in RC its hard to fix a bug like this but this module isn't packaged with 5.5, its from the update source, can't it be fixed for an update?
*** Issue 88226 has been marked as a duplicate of this issue. ***
Many complaining users. P2.
GTK is supposed to be turned on by default in NB 6.0. I think this is P1 then. Since I can't use at all svn diff in NB, i.e. missing major IDE feature. Until then I'll stick with command line.
fixed Checking in MultiDiffView.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/ui/diff/MultiDiffView.java,v <-- MultiDiffView.java new revision: 1.18; previous revision: 1.17 done
Both original code and fix are wrong (see my post to dev mailing lists). Please correct it.
ok, thanks. so one more try - the main problem was in the MultiDiffView extending JPanel, where there is no reason to do this. I separeted the implementation for the MultiDiffView componnnt (JPanel) and the DiffView part. Checking in MultiDiffView.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/ui/diff/MultiDiffView.java,v <-- MultiDiffView.java new revision: 1.19; previous revision: 1.18 done
*** Issue 96794 has been marked as a duplicate of this issue. ***
*** Issue 103815 has been marked as a duplicate of this issue. ***
*** Issue 122946 has been marked as a duplicate of this issue. ***