Bug 267845 - NullPointerException at org.netbeans.modules.javascript2.source.query.SourceElementsQueryImpl$2.run
NullPointerException at org.netbeans.modules.javascript2.source.query.SourceE...
Product: javascript
Classification: Unclassified
Component: Debugger
All All
: P3 (vote)
: 8.2
Assigned To: Martin Entlicher
EXCEPTIONS_REPORT, 82patch1-verified
Depends on:
  Show dependency treegraph
Reported: 2016-09-03 17:15 UTC by Jenselme
Modified: 2016-12-13 14:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT

stacktrace (7.21 KB, text/plain)
2016-09-03 17:16 UTC, Jenselme

Note You need to log in before you can comment on or make changes to this bug.
Description Jenselme 2016-09-03 17:15:58 UTC
This issue was reported manually by Jenselme.
It already has 1 duplicates 

Build: NetBeans IDE Dev (Build 201609020002)
VM: OpenJDK 64-Bit Server VM, 25.102-b14, OpenJDK Runtime Environment, 1.8.0_102-b14
OS: Linux

User Comments:
Jenselme: With this code:

<!DOCTYPE html>
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <div>TODO write content</div>

            function yolo() {
            function bar() {
            var t = 'nrsatuie';
            var a = {
                a: 'nrsaiute',
            console.log(t);  // <--- Set a breakpoint here

When the break point is reached, with callback window opened:

1. Step over
2. Step into to enter function. Exception occurs.

   at org.netbeans.modules.javascript2.source.query.SourceElementsQueryImpl$2.run(SourceElementsQueryImpl.java:105)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
   at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:204)
   at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:201)
Comment 1 Jenselme 2016-09-03 17:16:01 UTC
Created attachment 161886 [details]
Comment 2 Jenselme 2016-09-03 17:17:50 UTC
The exception also happens if once you are in a function you open the Callstack windwow.
Comment 3 Petr Pisl 2016-09-05 07:28:04 UTC
Reassigning to Martin.
Comment 4 Martin Entlicher 2016-09-27 16:50:35 UTC
Fixed by changeset:   300899:a58b75d3fc9e
Comment 5 Quality Engineering 2016-09-29 01:52:44 UTC
Integrated into 'main-silver', will be available in build *201609290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a58b75d3fc9e
User: mentlicher@netbeans.org
Log: #267845: Check the model for null.
Comment 6 Martin Entlicher 2016-12-09 09:54:30 UTC
Transplanted to release82:
Comment 7 Stepan Zebra 2016-12-13 14:18:21 UTC
verified in NB 8.2 Patch 1

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo