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.
It started to happen after fix of #30986. To reproduce: - run IDE - open popup menu on Filesystems node => NPE is thrown (see att.) Tested in build 200302130100, JDK1.4.1_01, Solaris.
Created attachment 8931 [details] NPE stack trace.
The heart of problem is NewTemplateAction.getTemplateRoot() which returns null. (an side effect of: User: dstrupl Date: 03/02/12 09:21:40 Modified: src/org/openide/actions NewTemplateAction.java Log: #30986: Deadlock fixed by not calling getNodes(true) while holding Children.MUTEX. ) Hint: rootFolder should be initialized, Davide, optionally contact me, I investigate it.
Created attachment 8932 [details] a proposed hotfix
I attached a hotfix which initialize rootFolder and setKeys not under Mutex.readAccess. I fixes this problem. Other hint: try avoid calling updateWizard under Mutex that the method propertyChange does, Petr Nejedly recommends replace readAccess with writeAccess, hope it helps.
*** Issue 31026 has been marked as a duplicate of this issue. ***
*** Issue 31023 has been marked as a duplicate of this issue. ***
*** Issue 31024 has been marked as a duplicate of this issue. ***
Fixed in NewTemplateAction 1.75.
Better fix (by jrechtacek) applied to NewTemplateAction.java 1.76
Verified in build 20030213-1649.
*** Issue 31105 has been marked as a duplicate of this issue. ***