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 257743 - NullPointerException: The file parameter cannot be null
Summary: NullPointerException: The file parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-28 18:51 UTC by Ondrej Vrabec
Modified: 2016-08-11 09:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219637


Attachments
stacktrace (5.42 KB, text/plain)
2016-01-28 18:51 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2016-01-28 18:51:58 UTC
Build: NetBeans IDE Dev (Build 201601150002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
GUEST: Importing a project from Eclipse to Netbeans...

GUEST: While background scanning was stuck, I moved the files that it was stuck on.

ovrabec: opened a JS file.




Stacktrace: 
java.lang.NullPointerException: The file parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.modules.parsing.spi.indexing.support.IndexingSupport.createDocument(IndexingSupport.java:134)
   at org.netbeans.modules.javascript2.knockout.index.KnockoutIndexer.index(KnockoutIndexer.java:99)
   at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$3.run(Indexable.java:248)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:296)
   at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:246)
Comment 1 Ondrej Vrabec 2016-01-28 18:51:59 UTC
Created attachment 158274 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-06-22 14:09:28 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=219637
Comment 3 Petr Pisl 2016-08-11 09:47:14 UTC
Fixed in web-main. The code was rewritten and now this exception can not happen.