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.
Product Version: NetBeans IDE Dev (Build 200708160000) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 steps to reproduce: 1. create js file 2. ctrl + space to invoke CC => exception
Created attachment 46731 [details] stack trace
reproducible
ISE exception fixed: /cvs/languages/engine/src/org/netbeans/modules/languages/features/CompletionProviderImpl.java new revision: 1.32; previous revision: 1.31 There is still one problem - code completion does not offer anything for empty files.
I think, this is P4 now because the list of items offered by code completion is empty only if the source file does not contain any character, cc works when there are at least some whitespaces. It is a very rare usecase to invoke cc in a totally empty file. It cannot be fixed easily, since cc items definitions are based on tokens precedessing the caret position.
There was no exception anymore, but code completion was empty (because token lookup failed in an empty document, so completion just returned). I've made it do normal (truncated, empty prefix) completion instead which seems reasonable. Fixed in changeset 99aa1d857786.