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 268714 - NullPointerException at org.netbeans.modules.java.completion.BaseTask.getEnvImpl
Summary: NullPointerException at org.netbeans.modules.java.completion.BaseTask.getEnvImpl
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-27 13:02 UTC by dusty
Modified: 2018-01-22 12:14 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223135


Attachments
stacktrace (2.05 KB, text/plain)
2016-10-27 13:02 UTC, dusty
Details
stacktrace (2.05 KB, text/plain)
2016-11-22 15:29 UTC, theshadow27
Details
stacktrace (2.05 KB, text/plain)
2017-01-17 14:17 UTC, akobberup
Details
stacktrace (2.05 KB, text/plain)
2017-01-24 16:26 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dusty 2016-10-27 13:02:57 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: OpenJDK 64-Bit Server VM, 25.102-b14, OpenJDK Runtime Environment, 1.8.0_102-8u102-b14.1-2-b14
OS: Linux

User Comments:
Dusty: I found this exception in the notifications tab, I don't know what caused it, sorry

GUEST: ???? ???. ?????? ?????????? ?? ?????.

scanti: Editing a .java file

Rahul.khandelwal: @Override
public boolean equals(Object _obj) {
    if (!(_obj in))
}

Above is the code snippet.
Got the issue while pressing ctrl+space on 'in' to get instanceOf autocomplete.

GUEST: autocomplete for "instance of"

GUEST: typed something ( Lambda )




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.completion.BaseTask.getEnvImpl(BaseTask.java:378)
   at org.netbeans.modules.java.completion.BaseTask.getCompletionEnvironment(BaseTask.java:266)
   at org.netbeans.modules.java.completion.JavaCompletionTask.resolve(JavaCompletionTask.java:269)
   at org.netbeans.modules.java.completion.BaseTask.run(BaseTask.java:93)
   at org.netbeans.modules.java.completion.JavaCompletionTask.run(JavaCompletionTask.java:80)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Comment 1 dusty 2016-10-27 13:02:59 UTC
Created attachment 162659 [details]
stacktrace
Comment 2 theshadow27 2016-11-22 15:29:24 UTC
Created attachment 162983 [details]
stacktrace

Building a project?
Comment 3 akobberup 2017-01-17 14:17:39 UTC
Created attachment 163413 [details]
stacktrace

Tried to use codecompletion in a labmda expression
Comment 4 muellermi 2017-01-24 16:26:41 UTC
Created attachment 163462 [details]
stacktrace

invoke autocompletion by CTRL + SPACE