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.
Trunk build, new userdir. Create a project and invoke New > Java Class from popup menu. You get an NPE. The same for other types of files. I am marking as P1 since this is very visible and easy to fix, although a workaround exists (using Ctrl-N instead of popup menu works for me). It is caused by a recent commit: tzezula@netbeans.org wrote: > , TemplateChooserPanel.java > , TemplateChooserPanelGUI.java ... > > User: tzezula > Date: 04/08/20 09:03:26 > > Modified: projectui/src/org/netbeans/modules/project/ui > TemplateChooserPanel.java > TemplateChooserPanelGUI.java TemplatesPanelGUI.java > Log: > Improved preselection in the new file wizard. > when I get the version of these file before it works for me
Created attachment 17009 [details] NPE
Looks like the wizard has already been uninitialized when current() is called during instantiate()? A bug in TemplateWizard perhaps? Only applies to NJFWI, not to non-Java files.
*** Issue 47595 has been marked as a duplicate of this issue. ***
The issues has nothing in common with commit mentioned above by Pavel. The problem is that current is called even after uninitialized is called. Seems a bug in the wizards framework.
*** Issue 47687 has been marked as a duplicate of this issue. ***
Checking in projectui/src/org/netbeans/modules/project/ui/TemplateChooserPanelGUI.java; /cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplateChooserPanelGUI.java,v <-- TemplateChooserPanelGUI.java new revision: 1.29; previous revision: 1.28 done Pavel was right, the NPE was caused by other exception which was not notified by the ErrorManager but was catched by TemplateWizard and printed to console this exception was thrown from initialize and causes the panels to be null.
*** Issue 47864 has been marked as a duplicate of this issue. ***
Verified.