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 249372 - NullPointerException: The sources[0] parameter cannot be null
Summary: NullPointerException: The sources[0] parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-15 22:08 UTC by Selpi
Modified: 2015-03-04 17:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 214205


Attachments
stacktrace (3.02 KB, text/plain)
2014-12-15 22:08 UTC, Selpi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Selpi 2014-12-15 22:08:10 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
Selpi: pressed "edit css rules" button in 'Applied styles' panel section while inspecting site with crome+netbeans connector




Stacktrace: 
java.lang.NullPointerException: The sources[0] parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:105)
   at org.netbeans.modules.web.inspect.webkit.ui.EditCSSRulesAction.actionPerformed(EditCSSRulesAction.java:106)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
Comment 1 Selpi 2014-12-15 22:08:12 UTC
Created attachment 151122 [details]
stacktrace
Comment 2 Vladimir Riha 2014-12-16 12:36:14 UTC
Could you please attach here the project where it happened? Or try it in Dev build from [1] ? It could be similar to issue 248911 caused by having certain IFRAMEs elements. 

Thank you

[1] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 3 Jan Stola 2015-03-04 17:08:52 UTC
Fixed.

Modified file: https://hg.netbeans.org/web-main/rev/98152fc895c8