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 61908

Summary: NPE from code completion
Product: editor Reporter: _ tboudreau <tboudreau>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2005-08-08 05:01:37 UTC
I clicked somewhere in the editor while CC was getting ready to pop up.  The
caret had been after the ending 'g' in the following unfinished line of text
when I clicked elsewhere:

            if (getText().equals(other.getText()) && getStartPosition().g)



java.lang.NullPointerException
	at
org.netbeans.modules.editor.completion.CompletionImpl.requestShowCompletionPane(CompletionImpl.java:456)
	at
org.netbeans.modules.editor.completion.CompletionImpl.finishNotify(CompletionImpl.java:676)
	at
org.netbeans.modules.editor.completion.CompletionResultSetImpl.finish(CompletionResultSetImpl.java:199)
	at
org.netbeans.spi.editor.completion.CompletionResultSet.finish(CompletionResultSet.java:184)
	at
org.netbeans.modules.editor.java.AbbreviationsCompletionProvider$Query.query(AbbreviationsCompletionProvider.java:80)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:181)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870)
Comment 1 Roman Strobl 2005-08-08 09:13:29 UTC
Thanks, this one is already reported.

*** This issue has been marked as a duplicate of 60483 ***