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.
Found in beta2 branch. To reproduce expand in Options dialog Source Creation and Management -> Template -> Java Classes and wait couple of milliseconds. The problem is reproducible also in trunk in daily build 200409071800. DefaultClassPathProvider which returns classpath for non-project files unfortunately tries to return classpath also for files from DefaultFileSystem. This problem is there long time but become visible after changes in JavaDataObject from 20040907.
Created attachment 17626 [details] NPE
Fixed in trunk: src/org/netbeans/modules/java/j2seplatform/platformdefinition/Defaul new revision: 1.9; previous revision: 1.8 Reviewed by rmatous, tested by phrebejk. I'm going to put it also to beta2 branch.
Fixed in beta2 branch too: src/org/netbeans/modules/java/j2seplatform/platformdefinition/DefaultClassPathProvider.java; new revision: 1.7.4.2; previous revision: 1.7.4.1
Verified in 4.2 (200507110943)