Bug 139280 - NPE when invoking CC
NPE when invoking CC
Status: VERIFIED FIXED
Product: groovy
Classification: Unclassified
Component: Editor
6.x
All All
: P1 (vote)
: 6.x
Assigned To: schmidtm
issues@groovy
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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 :-)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo