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 262295 - NullPointerException at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getTokenSequence
Summary: NullPointerException at org.netbeans.modules.javascript2.editor.api.lexer.Lex...
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-01 13:47 UTC by terje7601
Modified: 2016-09-08 13:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222597


Attachments
stacktrace (5.47 KB, text/plain)
2016-06-01 13:47 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2016-06-01 13:47:21 UTC
Build: NetBeans IDE Dev (Build 201605200002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.77-b03, Java(TM) SE Runtime Environment, 1.8.0_77-b03
OS: Windows 7

User Comments:
GUEST: Stuck at 75 % for the process: "Background scanning of projects..."

terje7601: Happened while doing "npm install" outside of the IDE




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getTokenSequence(LexUtilities.java:125)
   at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getJsTokenSequence(LexUtilities.java:110)
   at org.netbeans.modules.javascript2.nodejs.editor.model.NodeJsRequireFunctionInterceptor.intercept(NodeJsRequireFunctionInterceptor.java:113)
   at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:195)
   at org.netbeans.modules.javascript2.editor.model.Model.getGlobalObject(Model.java:503)
   at org.netbeans.modules.javascript2.editor.index.JsIndexer.index(JsIndexer.java:105)
Comment 1 terje7601 2016-06-01 13:47:23 UTC
Created attachment 159930 [details]
stacktrace
Comment 2 Petr Pisl 2016-08-11 08:11:55 UTC
Fixed in web-main
Comment 3 sureshpisupati 2016-08-11 11:21:54 UTC
Please tell me how to resolve this issue.
Comment 4 sureshpisupati 2016-08-11 11:24:46 UTC
i have upgraded from NetBeans 7 to NetBeans 8.1 and when i am logging into my application which is built upon NetBeans libraries, i am facing this issue. Please help me resolving this issue.
Comment 5 Petr Pisl 2016-08-11 16:55:11 UTC
It's fixed in the dev builds. You can download them here: http://bits.netbeans.org/download/trunk/nightly/latest/

But it was fixed today and it will take a few days to be a part of the nightly builds. It should be mentioned here.
Comment 6 Quality Engineering 2016-08-12 02:49:55 UTC
Integrated into 'main-silver', will be available in build *201608120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6fdfb1793976
User: Petr Pisl <ppisl@netbeans.org>
Log: #262295 - NullPointerException at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getTokenSequence
Comment 7 sureshpisupati 2016-09-08 13:47:56 UTC
Hi,

I have tried with the build from nightly, and facing the same issue. Please help he in resolving this issue.