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 270573

Summary: NullPointerException at org.netbeans.modules.web.jsf.editor.completion.JsfAttributesCompletionHelper.containsCCEntry
Product: javaee Reporter: roben
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: NEW ---    
Severity: normal CC: vriha
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229064
Attachments: stacktrace

Description roben 2017-05-05 12:16:32 UTC
This bug was originally marked as duplicate of bug 249847, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b16, Java(TM) SE Runtime Environment, 1.8.0_112-b16
OS: Mac OS X

User Comments:
vriha: To reproduce:
 - create a new Java Web project with JSF 2.2
 - select the text in index.xhtml and convert it to Composite Component
 - open the composite component and replace its content with https://netbeans.org/bugzilla/attachment.cgi?id=151531
 - in index.xhtml, try to iinvoke cc in position of ^
<ez:out ^ />

roben: This occured while editing a facelet and the auto completion for the message bundle popped up. Netbeans was not responsive for several seconds and the state showed "Downloading http javadoc". This happens nearly on a daily basis.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.jsf.editor.completion.JsfAttributesCompletionHelper.containsCCEntry(JsfAttributesCompletionHelper.java:201)
   at org.netbeans.modules.web.jsf.editor.completion.JsfAttributesCompletionHelper.completeAttributes(JsfAttributesCompletionHelper.java:177)
   at org.netbeans.modules.web.jsf.editor.JsfHtmlExtension.completeAttributes(JsfHtmlExtension.java:342)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.query(HtmlCompletionQuery.java:485)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery$1.run(HtmlCompletionQuery.java:134)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1421)
Comment 1 roben 2017-05-05 12:16:36 UTC
Created attachment 164258 [details]
stacktrace