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.
getCurrent method depends on method offset which calls listener.support.getDocument() which can be null if document is loading (see ClonableEditorSupport:940). Thus when document is loading getCurrent sometimes silently returns line 0 not the requested line...
*** Bug 196695 has been marked as a duplicate of this bug. ***
Is there any way (test or a user problem) where the problem would be reproduced?
there is a description in the bug 196695, I have not seen any other cases
I was not able to reproduce (with the description in issue 196695). If the problem persists please reopen.