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.
It is not possible to get offset of the empty token sequence. I run into this when I work with an embedded token sequence. TokenSequence.offset() throws ISE as it is impossible to move to any token and I do not have any access to parent sequence.
Possibly TokenSequence.offset() could give offset of the whole token sequence when pointing not relocated to any concrete token.
Report from old NetBeans version. Due to code changes since it was reported likely to not happen. Feel free to reopen if happens in 8.0.2 or 8.1.