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

Summary: NullPointerException at org.netbeans.modules.java.completion.BaseTask.getEnvImpl
Product: java Reporter: dusty <dusty>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: akobberup, Alniks, dathyrius, draison, freekamel67, muellermi, Rahul.khandelwal, rudyment, scanti, squib, theshadow27
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223135
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

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