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.

Bug 236831

Summary: NullPointerException at org.netbeans.modules.web.jsf.editor.index.JsfIndex.<init>
Product: javaee Reporter: Michel Graciano <hmichel>
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204407
Attachments: stacktrace

Description Michel Graciano 2013-10-07 12:46:20 UTC
This bug was originally marked as duplicate of bug 194841, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 RC2 (Build 201309252201)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
hmichel: Just created a Java project, and during the opening of its main class I faced this issue. The main class name was lombok (without any package)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.jsf.editor.index.JsfIndex.<init>(JsfIndex.java:87)
   at org.netbeans.modules.web.jsf.editor.index.JsfIndex.create(JsfIndex.java:69)
   at org.netbeans.modules.web.jsf.editor.JsfSupportImpl.getIndex(JsfSupportImpl.java:252)
   at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.checkLibraryDescriptorsUpToDate(FaceletsLibrarySupport.java:205)
   at org.netbeans.modules.web.jsf.editor.facelets.FaceletsLibrarySupport.indexedContentPossiblyChanged(FaceletsLibrarySupport.java:181)
   at org.netbeans.modules.web.jsf.editor.JsfSupportImpl.indexedContentPossiblyChanged(JsfSupportImpl.java:246)
Comment 1 Michel Graciano 2013-10-07 12:46:22 UTC
Created attachment 140854 [details]
stacktrace
Comment 2 Michel Graciano 2013-10-07 12:56:55 UTC
When it happened I had 2 Maven projects (one Web and other is the POM project), and I had one HTML5 project too, which just points to the Maven Web project. None of this projects have any JSF file btw.
Comment 3 Martin Fousek 2013-10-08 06:18:08 UTC
(In reply to Michel Graciano from comment #2)
> When it happened I had 2 Maven projects (one Web and other is the POM
> project), and I had one HTML5 project too, which just points to the Maven
> Web project. None of this projects have any JSF file btw.

That's some kind of obscure situation where project's execution classpath has to be null. In any case no such NPE should appear anymore. Fixed in web-main #df5a7aef4372.