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

Summary: NullPointerException: The file parameter cannot be null
Product: javascript Reporter: Ondrej Vrabec <ovrabec>
Component: -- Other --Assignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: obrejla
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219637
Attachments: stacktrace

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.