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 139280 - NPE when invoking CC
Summary: NPE when invoking CC
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: schmidtm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 15:57 UTC by Lukas Jungmann
Modified: 2008-10-30 14:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2008-07-08 15:57:00 UTC
-open a groovy script containing following line in the editor:

println new URL("http://google.com").g|etText()

-invoke CC on | position

=> java.lang.NullPointerException
	at org.netbeans.modules.groovy.editor.completion.CodeCompleter.completeTypes(CodeCompleter.java:1462)
	at org.netbeans.modules.groovy.editor.completion.CodeCompleter.complete(CodeCompleter.java:1957)
	at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.addCodeCompletionItems(GsfCompletionProvider.java:573)
	at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:559)
	at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:387)
	at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:219)
	at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:467)
	at
org.netbeans.modules.gsfret.editor.completion.GsfCompletionProvider$JavaCompletionQuery.query(GsfCompletionProvider.java:292)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 schmidtm 2008-07-08 16:30:21 UTC
This was fixed with:

http://hg.netbeans.org/main/rev/3c2ebfd822dc
Comment 2 Lukas Jungmann 2008-07-08 16:37:04 UTC
yup but I have another issue for you :-)