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.
This issue was reported manually by terje7601. It already has 5 duplicates Build: NetBeans IDE 8.0 Beta (Build 201401141042) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123 OS: Windows 8 User Comments: GUEST: Exception thrown just before adding "extends" between names of a class and its superclass. GUEST: Was creating a class and changing it's implementation from EventHandler<MouseEvent> to Event. then the error popped up multiple times class mouseHandler implements EventHandler<Event.> terje7601: Working on a Java 8 file GUEST: Writing code that may have required completion. terje7601: Trying auto-complete on a static import of import static java.util.Comparator.na|turalOrder (with the bar specifying at which point i pressed Ctrl+space & the exception occured) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.addMembers(JavaCompletionProvider.java:3506) at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.insideMemberSelect(JavaCompletionProvider.java:1857) at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.resolveCompletion(JavaCompletionProvider.java:694) at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:448) at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery$Task.run(JavaCompletionProvider.java:5885) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593)
Created attachment 144225 [details] stacktrace
Created attachment 144697 [details] stacktrace I was executing a test case for NetCat. This is the file content before the error: package netcat; public class NetCatTest { public static void main(String args[]) { } public String toString(){ return "Hello"; } } I tryed to add an import to test the "unused import" warning mechanism so I wrote: import javax. and then hit Enter three times to select the first suggested import. The ide wrote import javax.accessibility.Accessible. and then throwed this exception.
Created attachment 144784 [details] stacktrace trying autocomplete after open parenthesis during java edition Property indexProp = new PropertySupport.Reflection<>(place, String.class, "getName", "setName");
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=200688
Reproducible
Dusan, what do you think ? It's JDK 8 related and we have reproducible case.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/d075d348d00d
verified in trunk
Integrated into release80. http://hg.netbeans.org/releases/rev/e0b7c8b2246e
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/e0b7c8b2246e User: Dusan Balek <dbalek@netbeans.org> Log: Issue #240792: NullPointerException at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.addMembers - fixed.
Integrated into 'main-silver', will be available in build *201404240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d075d348d00d User: Dusan Balek <dbalek@netbeans.org> Log: Issue #240792: NullPointerException at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.addMembers - fixed.