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.
Created attachment 158283 [details] A simple NetBeans Project Suite source code Suppose I have a web application and I put into the src/main/webapp a file named package.json. If i write in a NetBeans module: Project webProject = FileOwnerQuery.getOwner( <any-web-project-file-object-inside-project-dir>); or Project webProject = Projectmanager.getDefault.findProject( <any-web-project-file-object-inside-project-dir>); than webProject is an instance of ConvertorProject. (org.netbeans.modules.project.ui.convertor.ProjectConvertorFactory$ConvertorProject) And the code: WebModule.getModule(<any-web-project-file-object-inside-project-dir>) produces null value. But if an object of type FileObject points to the root project directory the everything works as expected. I have: Windows 7 (64) jdk-1.8.0_72 NetBeans 8.1