Build: NetBeans IDE Dev (Build 201705260001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11
OS: Windows 7
muellermi: start NB
Created attachment 164412 [details]
Created attachment 164413 [details]
Created attachment 164414 [details]
switching to other source file
This bug already has 10 duplicates
Created attachment 164449 [details]
placed the cursor mouse over a collapsed javadoc block
Created attachment 164450 [details]
tried to delete blank lines from a java source file in git source control
Created attachment 164456 [details]
placed the mouse cursor over a collapsed block of code
Created attachment 164520 [details]
Open class file from library
Created attachment 164527 [details]
Created attachment 164528 [details]
happens when hovering mouse over collapsed javadoc
This bug occurs every few minutes or more. Thus I increased priority to P2. Might be better P1?
(In reply to muellermi from comment #11)
It's very annoying but doesn't result in data loss so P2 is appropriate.
If this bug occurs and you send the bug report, it will occur again and you'll get stuck in an endless loop.
Workarround: Cancel exeption reporter twice and then it is finally possible to edit a source file.
Created attachment 164689 [details]
Nothing out of ordinary
I've got the exception several times already, usually at startup, so I'd guess it has to do with some tasks performed during/after deserialization.
It's obviously happeding to the active window:
When I get the exception, it helps to close the active window to be able to work with NB. So it's probably caused by code during setting the active TopWindow after deserialization.
Created attachment 164721 [details]
Just scrolling a Java file
Created attachment 164749 [details]
Just scrolling a Java file
*** Bug 270967 has been marked as a duplicate of this bug. ***
*** Bug 270854 has been marked as a duplicate of this bug. ***
*** Bug 270762 has been marked as a duplicate of this bug. ***
*** Bug 270761 has been marked as a duplicate of this bug. ***
Fixed in jet-main.
Integrated into 'main-silver', will be available in build *201707220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Dusan Balek <email@example.com>
Log: Issue #270745 - NullPointerException at org.netbeans.api.editor.caret.EditorCaret.maybeSaveCaretOffset - fixed.
interestingly, with Java 9 this doesn't happen:
Product Version: NetBeans IDE Dev (Build 201707050001)
Java: 9-internal; OpenJDK 64-Bit Server VM 9-internal+0-adhoc.alied.jdk9
Runtime: OpenJDK Runtime Environment 9-internal+0-adhoc.alied.jdk9
System: Linux version 4.11.11 running on amd64; UTF-8; en_US (nb)
User directory: /home/alied/.netbeans/dev
Cache directory: /home/alied/.cache/netbeans/dev