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 233463 - 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: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-26 08:04 UTC by viggonavarsete
Modified: 2013-07-29 14:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 200568


Attachments
stacktrace (1.83 KB, text/plain)
2013-07-26 08:04 UTC, viggonavarsete
Details

Note You need to log in before you can comment on or make changes to this bug.
Description viggonavarsete 2013-07-26 08:04:06 UTC
Build: NetBeans IDE Dev (Build 201307242300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 7

User Comments:
GUEST: Tried inspecting an element in debugger with chrome connector extention enabled.

GUEST: using netbeans connector and adding css rule

viggonavarsete: I tried the action sample bundled with Netbeans and reading the blog from Gertjan showing how to use it, when it crashed




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.CSSStylesPanel$3$1.run(CSSStylesPanel.java:288)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 viggonavarsete 2013-07-26 08:04:07 UTC
Created attachment 137841 [details]
stacktrace
Comment 2 Jan Stola 2013-07-29 14:04:07 UTC
This issue is similar to issue 230935. It may happen when the inspected URL maps to a folder. For example, when you inspect a URL like http://localhost:8383/HTML5Application27/ then the web server may serve the content that corresponds to http://localhost:8383/HTML5Application27/index.html but the original URL itself maps to a folder.

Moreover, the server page must contain embedded stylesheet and a matching rule from this stylesheet must be selected in CSS Styles view.
Comment 3 Jan Stola 2013-07-29 14:56:59 UTC
Fixed by http://hg.netbeans.org/web-main/rev/33c5192c5a1f