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 203500 - DocumentLine$Set.getCurrent is unreliable if document is loading
Summary: DocumentLine$Set.getCurrent is unreliable if document is loading
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 196695 (view as bug list)
Depends on:
Blocks: 196695
  Show dependency tree
 
Reported: 2011-10-11 12:23 UTC by Egor Ushakov
Modified: 2015-10-26 09:42 UTC (History)
0 users

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 Egor Ushakov 2011-10-11 12:23:24 UTC
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...
Comment 1 Egor Ushakov 2011-10-20 09:57:40 UTC
*** Bug 196695 has been marked as a duplicate of this bug. ***
Comment 2 Miloslav Metelka 2013-08-28 12:33:54 UTC
Is there any way (test or a user problem) where the problem would be reproduced?
Comment 3 Egor Ushakov 2013-08-28 12:39:57 UTC
there is a description in the bug 196695, I have not seen any other cases
Comment 4 Miloslav Metelka 2015-10-26 09:42:46 UTC
I was not able to reproduce (with the description in issue 196695). If the problem persists please reopen.