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 238217 - 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-11-11 08:06 UTC by Exceptions Reporter
Modified: 2015-03-04 03:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205153


Attachments
stacktrace (473 bytes, text/plain)
2013-11-11 08:06 UTC, Exceptions Reporter
Details
stacktrace (473 bytes, text/plain)
2014-05-23 11:28 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-11-11 08:06:32 UTC
This bug was originally marked as duplicate of bug 233463, 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 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows XP

User Comments:
GUEST: Error




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$4$1.run(CSSStylesPanel.java:325)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 Exceptions Reporter 2013-11-11 08:06:33 UTC
Created attachment 142046 [details]
stacktrace
Comment 2 Vladimir Riha 2014-05-23 11:28:13 UTC
Created attachment 147405 [details]
stacktrace

I ran project in Chrome with NB integration and selected element using Inspect mode that uses CSS from external file (external URL). This NPE likely popped out when I tried to focus CSS rule from external file in Applied Styles in CSS Styles
Comment 3 Vladimir Riha 2014-05-23 11:29:57 UTC
Project to reproduce the issue is here 

http://services.netbeans.org/synergy/server/api/attachment.php?id=140
Comment 4 Jan Stola 2015-03-03 16:44:57 UTC
I was not able to reproduce this issue, but the fix seems to be clear.

Modified file: https://hg.netbeans.org/web-main/rev/0db30b8a7003
Comment 5 Quality Engineering 2015-03-04 03:56:40 UTC
Integrated into 'main-silver', will be available in build *201503040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0db30b8a7003
User: Jan Stola <jstola@netbeans.org>
Log: #238217: Avoiding a potential NPE