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 240792 - NullPointerException at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.addMembers
Summary: NullPointerException at org.netbeans.modules.editor.java.JavaCompletionProvid...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 19:16 UTC by terje7601
Modified: 2014-04-25 14:06 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200688


Attachments
stacktrace (1.99 KB, text/plain)
2014-01-21 19:16 UTC, terje7601
Details
stacktrace (1.99 KB, text/plain)
2014-02-02 18:01 UTC, -Silver-
Details
stacktrace (643 bytes, text/plain)
2014-02-04 15:10 UTC, skygo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-01-21 19:16:07 UTC
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)
Comment 1 terje7601 2014-01-21 19:16:09 UTC
Created attachment 144225 [details]
stacktrace
Comment 2 -Silver- 2014-02-02 18:01:15 UTC
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.
Comment 3 skygo 2014-02-04 15:10:16 UTC
Created attachment 144784 [details]
stacktrace

trying autocomplete after open parenthesis during java edition

Property indexProp = new PropertySupport.Reflection<>(place, String.class, "getName", "setName");
Comment 4 Exceptions Reporter 2014-02-22 21:52:45 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200688
Comment 5 Jiri Prox 2014-03-12 14:15:13 UTC
Reproducible
Comment 6 Marian Mirilovic 2014-04-18 12:18:52 UTC
Dusan, what do you think ? It's JDK 8 related and we have reproducible case.
Comment 7 Dusan Balek 2014-04-22 08:16:16 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/d075d348d00d
Comment 8 Jiri Prox 2014-04-22 15:25:41 UTC
verified in trunk
Comment 9 Dusan Balek 2014-04-23 07:28:47 UTC
Integrated into release80.

http://hg.netbeans.org/releases/rev/e0b7c8b2246e
Comment 10 Quality Engineering 2014-04-24 02:10:03 UTC
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.
Comment 11 Quality Engineering 2014-04-24 02:10:43 UTC
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.